underscore() 공개 정적인 메소드

public static underscore ( $string ) : string
리턴 string
예제 #1
0
파일: BaseMapper.php 프로젝트: nextras/orm
 public function getTableName()
 {
     if (!$this->tableName) {
         $tableName = str_replace('Mapper', '', $this->getReflection()->getShortName());
         $this->tableName = StringHelper::underscore($tableName);
     }
     return $this->tableName;
 }
예제 #2
0
파일: Mapper.php 프로젝트: ytnuk/orm
 public function getTableName() : string
 {
     if (!$this->tableName) {
         $namespace = explode('\\', $this->getReflection()->getNamespaceName());
         array_shift($namespace);
         $this->tableName = Nextras\Orm\StorageReflection\StringHelper::underscore(implode($namespace));
     }
     return $this->tableName ?: parent::getTableName();
 }
 public function formatStorageKey($key)
 {
     return StringHelper::underscore($key);
 }