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
Example #1
0
 /**
  * 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);
 }