src/xPDO/Om/xPDOQuery.php
public function from($class, $alias= '') {
        if ($class= $this->xpdo->loadClass($class)) {
            $alias= $alias ? $alias : $class;
            $this->query['from']['tables'][]= array (
                'table' => $this->xpdo->getTableName($class),
                'alias' => $alias
            );
        }
        return $this;
    }
public function from($class, $alias= '') {
        if ($class= $this->xpdo->loadClass($class)) {
            $alias= $alias ? $alias : $class;
            $this->query['from']['tables'][]= array (
                'table' => $this->xpdo->getTableName($class),
                'alias' => $alias
            );
        }
        return $this;
    }
public function from ( $ class , $ alias = '' ) { if ( $ class = $ this -> xpdo -> loadClass ( $ class ) ) { $ alias = $ alias ? $ alias : $ class ; $ this -> query [ 'from' ] [ 'tables' ] [ ] = array ( 'table' => $ this -> xpdo -> getTableName ( $ class ) , 'alias' => $ alias ) ; } return $ this ; }
Add a FROM clause to the query.

@param string $class The class representing the table to add.
@param string $alias An optional alias for the class.
@return xPDOQuery Returns the instance.
Add a FROM clause to the query .