$currentObjId
$currentObjId : mixed
Script action to list the objects of a certain type.
When not running in silent mode, required parameters omitted from the command will be asked interactively.
obj-type
num-per-page
page
list-ident
setView(\Charcoal\View\ViewInterface|array $view) : \Charcoal\Admin\Ui\CollectionContainerInterface
\Charcoal\View\ViewInterface|array | $view | The view instance. |
Chainable
setCollectionLoader(\Charcoal\Loader\CollectionLoader $loader) : \Charcoal\Admin\Ui\CollectionContainerInterface
\Charcoal\Loader\CollectionLoader | $loader | The collection loader. |
Chainable
setObjType(string $objType) : \Charcoal\Admin\Ui\CollectionContainerInterface
string | $objType | The collection's object type. |
If provided argument is not of type 'string'.
Chainable
setCollectionIdent(string $collectionIdent) : \Charcoal\Admin\Ui\CollectionContainerInterface
Set the key for the collection structure to use.
string | $collectionIdent | The collection identifier. |
If the identifier argument is not a string.
Chainable
setCollectionConfig(mixed $config) : \Charcoal\Admin\Ui\CollectionContainerInterface
Replace the collection's configset with the given parameters.
mixed | $config | New collection config values. |
Chainable
setCollection(mixed $collection) : \Charcoal\Admin\Ui\CollectionContainerInterface
mixed | $collection | The collection. |
Chainable
run(\Psr\Http\Message\RequestInterface $request, \Psr\Http\Message\ResponseInterface $response) : \Psr\Http\Message\ResponseInterface
\Psr\Http\Message\RequestInterface | $request | A PSR-7 compatible Request instance. |
\Psr\Http\Message\ResponseInterface | $response | A PSR-7 compatible Response instance. |
setModelFactory(\Charcoal\Factory\FactoryInterface $factory) : \Charcoal\Admin\AdminScript
\Charcoal\Factory\FactoryInterface | $factory | The factory used to create models. |
Chainable
setupDisplayPropertyValue(\Charcoal\Model\ModelInterface $object, \Charcoal\Property\PropertyInterface $property) : void
Setup the property's display value before its assigned to the object row.
This method is useful for classes using this trait.
\Charcoal\Model\ModelInterface | $object | The current row's object. |
\Charcoal\Property\PropertyInterface | $property | The current property. |
parsePropertyCell(\Charcoal\Model\ModelInterface $object, \Charcoal\Property\PropertyInterface $property, string $propertyValue) : array
Filter the property before its assigned to the object row.
This method is useful for classes using this trait.
\Charcoal\Model\ModelInterface | $object | The current row's object. |
\Charcoal\Property\PropertyInterface | $property | The current property. |
string | $propertyValue | The property $key's display value. |
parseObjectRow(\Charcoal\Model\ModelInterface $object, array $objectProperties) : array
Filter the object before its assigned to the row.
This method is useful for classes using this trait.
\Charcoal\Model\ModelInterface | $object | The current row's object. |
array | $objectProperties | The $object's display properties. |
setPropertyDisplayFactory(\Charcoal\Factory\FactoryInterface $factory) : \Charcoal\Admin\Ui\CollectionContainerInterface
\Charcoal\Factory\FactoryInterface | $factory | The property display factory. |
Chainable
booleanInput(\Charcoal\Property\PropertyInterface $prop) : \League\CLImate\TerminalObject\Dynamic\Input
Get a CLI input from a boolean property.
\Charcoal\Property\PropertyInterface | $prop | The property to retrieve input from. |
passwordInput(\Charcoal\Property\PropertyInterface $prop) : \League\CLImate\TerminalObject\Dynamic\Input
Get a CLI password input (hidden) from a password property.
\Charcoal\Property\PropertyInterface | $prop | The property to retrieve input from. |