buildModel() public static method

Build the model instance with data given
public static buildModel ( string $action = 'find', string $name, array $args ) : object
$action string Action called (ex: "delete" or "create")
$name string Function nname
$args array Arguments set
return object Model instance
コード例 #1
0
ファイル: Delete.php プロジェクト: stevedien/gatekeeper
 /**
  * Execute the deletion handling
  *
  * @return boolean Success/failure of delete
  */
 public function execute()
 {
     $args = $this->getArguments();
     $name = $this->getName();
     $model = g::buildModel('delete', $name, $args);
     return $this->getDb()->delete($model);
 }