src/Charcoal/Source/DatabaseSource.php
public function sqlFrom()
    {
        if (!$this->hasTable()) {
            throw new UnexpectedValueException(
                'Can not get SQL FROM clause. No table defined.'
            );
        }

        $table = $this->table();
        return '`'.$table.'` AS `'.self::DEFAULT_TABLE_ALIAS.'`';
    }
public function sqlFrom()
    {
        if (!$this->hasTable()) {
            throw new UnexpectedValueException(
                'Can not get SQL FROM clause. No table defined.'
            );
        }

        $table = $this->table();
        return '`'.$table.'` AS `'.self::DEFAULT_TABLE_ALIAS.'`';
    }
public function sqlFrom ( ) { if ( ! $ this -> hasTable ( ) ) { throw new UnexpectedValueException ( 'Can not get SQL FROM clause. No table defined.' ) ; } $ table = $ this -> table ( ) ; return '`' . $ table . '` AS `' . self :: DEFAULT_TABLE_ALIAS . '`' ; }
Compile the FROM clause.

@throws UnexpectedValueException If the source does not have a table defined.
@return string
Compile the FROM clause .