コード例 #1
0
ファイル: DBModel.php プロジェクト: hosannahighertech/upendo
 public function __construct()
 {
     parent::__construct([]);
     if ($this->modelName == '') {
         $this->modelName = $this->table;
     }
     if ($this->modelName == '') {
         $this->collectionName = Inflect::pluralize($this->modelName);
     }
 }
コード例 #2
0
 /**
  * @inheritdoc
  */
 public function getResourceType()
 {
     return \upendo\utils\Inflect::pluralize(self::$controller->getId());
 }