Contao\Model::getTable PHP Метод

getTable() публичный статический Метод

Return the name of the related table
public static getTable ( ) : string
Результат string The table name
    public static function getTable()
    {
        return static::$strTable;
    }

Usage Example

Пример #1
0
 /**
  * Check if an alias is registered
  *
  * @param Model  $objModel The model object
  * @param string $strAlias The alias name
  * @param mixed  $varValue The value of the alias
  *
  * @return boolean True if the alias is registered
  */
 public function isRegisteredAlias(Model $objModel, $strAlias, $varValue)
 {
     $strTable = $objModel->getTable();
     return isset($this->arrAliases[$strTable][$strAlias][$varValue]);
 }