Orangehill\Iseed\Iseed::getData PHP Méthode

getData() public méthode

Get the Data
public getData ( string $table, $max ) : Array
$table string
Résultat Array
    public function getData($table, $max)
    {
        if (!$max) {
            return \DB::connection($this->databaseName)->table($table)->get();
        }
        return \DB::connection($this->databaseName)->table($table)->limit($max)->get();
    }

Usage Example

Exemple #1
0
 /**
  * Get the Data
  *
  * @param string $table
  * @return Array 
  * @static 
  */
 public static function getData($table, $max)
 {
     return \Orangehill\Iseed\Iseed::getData($table, $max);
 }