Interface luya\admin\ngrest\base\NgRestRelationInterface
Implemented by | luya\admin\ngrest\base\NgRestRelation |
---|---|
Source Code | https://github.com/luyadev/luya-module-admin/blob/master/src/ngrest/base/NgRestRelationInterface.php |
NgRest Relation Interface.
Each relation definition must be an instance of this class.
Public Methods
Method Details
Get the api endpoint for the relation in order to make the relation data call.
public abstract void getApiEndpoint ( ) |
public function getApiEndpoint();
Get the array index of the relation in the relations array.
public abstract void getArrayIndex ( ) |
public function getArrayIndex();
Get the encoded model class name.
public abstract void getModelClass ( ) |
public function getModelClass();
Get relation link informations.
public abstract void getRelationLink ( ) |
public function getRelationLink();
Returns the tab label attribute name.
In order to change the tab label, any of the available and exposed attributes can be taken. The attribute must be defined in {{luya\admin\ngrest\base\NgRestModel::ngRestScopes()}} list scope. The tab can only display labels which are returned by the API.
public abstract void getTabLabelAttribute ( ) |
public function getTabLabelAttribute();
Get the target model class path.
public abstract string getTargetModel ( ) |
public function getTargetModel();
Set the index of the relation in the relations array.
public abstract void setArrayIndex ( $arrayIndex ) | ||
$arrayIndex | integer |
public function setArrayIndex($arrayIndex);
Set the model class of the current ngRestModel.
public abstract void setModelClass ( $modelClass ) | ||
$modelClass | string |
public function setModelClass($modelClass);
Set the target model class.
public abstract void setTargetModel ( $targetModel ) | ||
$targetModel | string |
public function setTargetModel($targetModel);