コード例 #1
0
ファイル: Record.php プロジェクト: lucasmattos/crm
 public function __construct()
 {
     parent::__construct();
     if (empty($this->entityName)) {
         $name = get_class($this);
         if (preg_match('@\\\\([\\w]+)$@', $name, $matches)) {
             $name = $matches[1];
         }
         if ($name != 'Record') {
             $this->entityName = $name;
         }
     }
 }
コード例 #2
0
ファイル: Record.php プロジェクト: naushrambo/espocrm
 public function __construct()
 {
     parent::__construct();
     if (empty($this->entityType)) {
         $name = get_class($this);
         if (preg_match('@\\\\([\\w]+)$@', $name, $matches)) {
             $name = $matches[1];
         }
         if ($name != 'Record') {
             $this->entityType = Util::normilizeScopeName($name);
         }
     }
     $this->entityName = $this->entityType;
 }