We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Example:
new ComplexRelationDefinition( 'target_id', ['source1_id', 'source2_id'], function(&$taget, $source1, $source2) { &$target = $source1 + $source2; } );
The text was updated successfully, but these errors were encountered:
Looks like example code equivalent to:
$hub->addDefinitions([ new ItemDefinition('tmp', [null, null]), new RelationDefinition('tmp', 'source1_id', function (&$t, $s) { $t[0] = $s; }), new RelationDefinition('tmp', 'source2_id', function (&$t, $s) { $t[1] = $s2; }), new RelationDefinition('target_id', 'tmp', function (&$target, $tmp) { $t = $tmp[0] + $tmp[1]; }), ]);
+ possibility to create private item definitions looks good here
$hub->addDefinition( new ItemDefinition('tmp', [null, null], ItemDefinitionm::FLAG_PRIVATE) ); assert($hub->has('tmp') === false);
Sorry, something went wrong.
Fix #3
c483343
#3: tests added
437fb97
Implemented in v0.5-dev
Nayjest
No branches or pull requests
Example:
The text was updated successfully, but these errors were encountered: