Table::name PHP Method

name() public method

public name ( )
    public function name()
    {
        if (is_null($this->table)) {
            $this->table = $this->model->getTable();
            if (is_null($this->table)) {
                $database = Connection::config($this->connection);
                $this->table = $database['prefix'] . Inflector::underscore(get_class($this->model));
            }
        }
        return $this->table;
    }

Usage Example

Example #1
0
 public function joinTable(Table $table)
 {
     $this->join_to[$table->name()] = $table;
     $table->setJoinType(self::INNER_JOIN);
 }
All Usage Examples Of Table::name