\Pho\Framework\LoadersFieldsLoader

Helps set up the fields of a particle (aka node)

Those cargos contain information on incoming and outgoing edges of the particle.

Summary

Methods
Properties
Constants
pack()
deploy()
fetchArray()
$cargo
No constants found
__construct()
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$cargo

$cargo : \Pho\Framework\Cargo\AbstractCargo

Core cargo variable.

Type

\Pho\Framework\Cargo\AbstractCargo

Methods

pack()

pack(\Pho\Framework\ParticleInterface  $particle) : \Pho\Framework\Loaders\AbstractLoader

Sets up fields.

Given the configurations set in the particle fields (e.g. FIELDS constant), configures the way the class will act.

Fields are stored in particle upper camelized; e.g.

  • birthday becomes Birthday
  • join_time becomes JoinTime
  • joinTime becomes JoinTime

Parameters

\Pho\Framework\ParticleInterface $particle

The particle that this loader is associated with.

Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/emresokullu/Code/website/phpdoc/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275 Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/emresokullu/Code/website/phpdoc/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275

Returns

\Pho\Framework\Loaders\AbstractLoader

The loader object itself, so that the deploy command can be called.

deploy()

deploy(mixed  $cargo) : \Pho\Framework\Loaders\AbstractLoader

Assigns the private variable into the particle's given cargo variable.

Parameters

mixed $cargo

The particle's own cargo variable. It's actually a nullable AbstractCargo (?AbstractCargo)

Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/emresokullu/Code/website/phpdoc/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275 Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/emresokullu/Code/website/phpdoc/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275

Returns

\Pho\Framework\Loaders\AbstractLoader

self

fetchArray()

fetchArray(\Pho\Lib\Graph\EntityInterface  $entity) : array

Helper method for pack()

Parameters

\Pho\Lib\Graph\EntityInterface $entity
Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/emresokullu/Code/website/phpdoc/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275 Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/emresokullu/Code/website/phpdoc/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275

Returns

array —

An array where keys are upper-camelized

__construct()

__construct(array  $data = array()) 

Constructor.

Set to be protected on purpose, so that it cannot be instantiated publicly.

Parameters

array $data

Any preliminary data, if available.

Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/emresokullu/Code/website/phpdoc/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275 Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/emresokullu/Code/website/phpdoc/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275