/** * Set uploaded file data source * * @param DataSource $source */ public static function setDataSource(DataSource $source) { static::$dataSource = $source; }
/** * 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; }
/** * 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; }