Ejemplo n.º 1
0
 /**
  * Set uploaded file data source
  *
  * @param DataSource $source
  */
 public static function setDataSource(DataSource $source)
 {
     static::$dataSource = $source;
 }
Ejemplo n.º 2
0
 /**
  * Set table to run fluent query without model class
  *
  * @param $table
  * @return $this
  */
 public function table($table)
 {
     $ar = static::getActiveRecord();
     $ar->setTableName($table);
     static::$dataSource = true;
     return $this;
 }
Ejemplo n.º 3
0
 /**
  * Set table to run fluent query without model class
  *
  * @param $table
  * @return $this
  */
 public function table($table)
 {
     $ar = static::cyrus();
     $ar->setTableName($table);
     static::$dataSource = true;
     return $this;
 }