-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
175 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
<?php | ||
|
||
namespace PhoNetworksAutogenerated; | ||
|
||
use Pho\Framework; | ||
use Pho\Kernel\Kernel; | ||
use Pho\Kernel\Traits; | ||
use Pho\Kernel\Foundation; | ||
|
||
|
||
|
||
|
||
/***************************************************** | ||
* This file was auto-generated by pho-compiler | ||
* For more information, visit http://phonetworks.org | ||
******************************************************/ | ||
|
||
class Group extends Foundation\AbstractGraphDP { | ||
|
||
const T_EDITABLE = true; | ||
const T_PERSISTENT = true; | ||
const T_EXPIRATION = 0; | ||
const T_VERSIONABLE = false; | ||
|
||
const DEFAULT_MOD = 0x1f751; | ||
const DEFAULT_MASK = 0xff999; | ||
|
||
const FIELDS = "{\"title\":{\"constraints\":{\"minLength\":null,\"maxLength\":\"80\",\"id\":null,\"regex\":null,\"greaterThan\":null,\"lessThan\":null,\"format\":null},\"directives\":{\"sha1\":false,\"md5\":false,\"now\":false,\"default\":\"|_~_~NO!-!VALUE!-!SET~_~_|\",\"unique\":false,\"index\":false}},\"description\":{\"constraints\":{\"minLength\":null,\"maxLength\":null,\"id\":null,\"regex\":null,\"greaterThan\":null,\"lessThan\":null,\"format\":null},\"directives\":{\"sha1\":false,\"md5\":false,\"now\":false,\"default\":\"|_~_~NO!-!VALUE!-!SET~_~_|\",\"unique\":false,\"index\":false}},\"create_date\":{\"constraints\":{\"minLength\":null,\"maxLength\":null,\"id\":null,\"regex\":null,\"greaterThan\":null,\"lessThan\":null,\"format\":null},\"directives\":{\"sha1\":false,\"md5\":false,\"now\":true,\"default\":\"|_~_~NO!-!VALUE!-!SET~_~_|\",\"unique\":false,\"index\":false}}}"; | ||
|
||
const FEED_SIMPLE = ""; | ||
const FEED_AGGREGATED = ""; | ||
|
||
public function __construct(\Pho\Kernel\Kernel $kernel, \Pho\Kernel\Foundation\AbstractActor $actor, \Pho\Lib\Graph\GraphInterface $graph , string $title, string $description) | ||
{ | ||
$this->registerIncomingEdges(UserOut\Create::class); | ||
$this->registerIncomingEdges(UserOut\Consume::class); | ||
parent::__construct($kernel, $actor, $graph); | ||
$this->setTitle($title, true); | ||
|
||
$this->setDescription($description, true); | ||
|
||
$this->setCreateDate(time(), true); | ||
|
||
$this->persist(); | ||
$this->context()->emit("particle.formed", [$this]); | ||
} | ||
|
||
} | ||
|
||
/***************************************************** | ||
* Timestamp: 1524372085 | ||
* Size (in bytes): 2374 | ||
* Compilation Time: 14 | ||
* fd96103a25fa02977d514448545be6d7 | ||
******************************************************/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Based on https://github.com/pho-recipes/Facebook/blob/master/.compiled/Group.php |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
<?php | ||
|
||
namespace PhoNetworksAutogenerated\UserOut | ||
{ | ||
|
||
use Pho\Kernel\Traits\Edge\PersistentTrait; | ||
use Pho\Framework; | ||
use Pho\Kernel\Foundation; | ||
|
||
|
||
|
||
/***************************************************** | ||
* This file was auto-generated by pho-compiler | ||
* For more information, visit http://phonetworks.org | ||
******************************************************/ | ||
|
||
class Create extends Foundation\ActorOut\Write { | ||
|
||
|
||
use PersistentTrait; | ||
|
||
|
||
const HEAD_LABEL = "creation"; | ||
const HEAD_LABELS = "creations"; | ||
const TAIL_LABEL = "creator"; | ||
const TAIL_LABELS = "creators"; | ||
|
||
const TAIL_CALLABLE_LABEL = ""; | ||
const TAIL_CALLABLE_LABELS = ""; | ||
const HEAD_CALLABLE_LABEL = ""; | ||
const HEAD_CALLABLE_LABELS = ""; | ||
|
||
const FEED_SIMPLE_LABEL = ""; | ||
const FEED_AGGREGATED_LABEL = ""; | ||
|
||
|
||
const FORMABLES = [\PhoNetworksAutogenerated\Group::class]; | ||
|
||
|
||
|
||
} | ||
|
||
/* Predicate to load as a partial */ | ||
class CreatePredicate extends Foundation\ActorOut\WritePredicate | ||
{ | ||
protected $binding = true; | ||
protected $multiplicable = false; | ||
|
||
const T_CONSUMER = true; | ||
const T_NOTIFIER = false; | ||
const T_SUBSCRIBER = false; | ||
const T_FORMATIVE = true; | ||
const T_PERSISTENT = true; | ||
} | ||
/* Notification to load if it's a subtype of write or mention. */ | ||
class CreateNotification extends Foundation\ActorOut\WriteNotification | ||
{ | ||
|
||
} | ||
} | ||
|
||
/***************************************************** | ||
* Timestamp: | ||
* Size (in bytes): 1613 | ||
* Compilation Time: 8 | ||
* b34abb6f3aada3fe015e4f8d40f7a2b8 | ||
******************************************************/ |