Ejemplo n.º 1
0
 /**
  * Method setTable
  * Set a table to be used in the query
  * @author Bruno Oliveira <*****@*****.**>
  * @access public
  * @param string $table
  * @throws DBException
  * @return Connection
  */
 public static function table($table)
 {
     if (!is_string($table)) {
         throw new DBException('Invalid Name. Must be a string.');
     }
     self::$table = $table;
     return new self::$class();
 }
Ejemplo n.º 2
0
 /**
  * Method setTable
  * Seta a tabela a ser usada na query
  * @author Bruno Oliveira <*****@*****.**>
  * @access public
  * @param string $table
  * @throws DBException
  * @return Connection
  */
 public static function table($table)
 {
     if (!is_string($table)) {
         throw new DBException('Nome inválido. Nome de ser uma string.');
     }
     self::$table = $table;
     return new self::$class();
 }