Interface luya\admin\ngrest\render\RenderCrudInterface
Implemented by | luya\admin\ngrest\render\RenderCrud |
---|---|
Available since version | 1.0.0 |
Source Code | https://github.com/luyadev/luya-module-admin/blob/master/src/ngrest/render/RenderCrudInterface.php |
Interface for CRUD renderers.
All CRUD renderers must implement this interface in order to interact with the API and Controllers.
Public Methods
Method Details
Whether create permission is granted.
public abstract boolean canCreate ( ) | ||
return | boolean |
Whether current user can create items. |
---|
public function canCreate();
Whether delete permission is granted.
public abstract boolean canDelete ( ) | ||
return | boolean |
Whether current user can update items. |
---|
public function canDelete();
Whether update permission is granted.
public abstract boolean canUpdate ( ) | ||
return | boolean |
Whether current user can update items. |
---|
public function canUpdate();
Returns the pool config array for the current active pool if any.
public abstract array getActivePoolConfig ( ) |
public function getActivePoolConfig();
Get whether the inline mode is enabled or not.
public abstract boolean getIsInline ( ) | ||
return | boolean |
Determine whether this ngrest config is runing as inline window mode (a modal dialog with the crud inside) or not. When inline mode is enabled some features like ESC-Keys and URL chaning must be disabled. |
---|
public function getIsInline();
public abstract luya\admin\ngrest\base\NgRestModelInterface getModel ( ) | ||
return | luya\admin\ngrest\base\NgRestModelInterface |
Returns the current ngrest model object. |
---|
public function getModel();
Model selection value from setter method.
public abstract string|boolean getModelSelection ( ) |
public function getModelSelection();
Get an array with all relations
public abstract array getRelationCall ( ) |
public function getRelationCall();
Get an array with additionals button definitions.
public abstract array getSettingButtonDefinitions ( ) |
public function getSettingButtonDefinitions();
Setter method for inline mode.
public abstract void setIsInline ( $inline ) | ||
$inline | boolean |
public function setIsInline($inline);
Set the current ngrest model for the crud.
public abstract void setModel ( luya\admin\ngrest\base\NgRestModelInterface $model ) | ||
$model | luya\admin\ngrest\base\NgRestModelInterface |
public function setModel(NgRestModelInterface $model);
Model preselection value when using ngrest relation calls.
public abstract void setModelSelection ( $selection ) | ||
$selection | string |
public function setModelSelection($selection);
Set an array with relations.
public abstract void setRelationCall ( array $options ) | ||
$options | array |
public function setRelationCall(array $options);
Optional definitions for settings button. Those definitions are made in the ngrest crud controller.
public abstract void setSettingButtonDefinitions ( array $buttons ) | ||
$buttons | array |
public function setSettingButtonDefinitions(array $buttons);