From bc337f11d95b52eeaf2796058ea390de33b26e0c Mon Sep 17 00:00:00 2001 From: Sasa Andjelic Date: Thu, 21 Jan 2016 14:07:21 +0100 Subject: [PATCH] Added prerun and postrun command options; Formatted code according to PSR-2 standard --- README.md | 82 + src/Orangehill/Iseed/Exceptions.php | 9 +- src/Orangehill/Iseed/Facades/Iseed.php | 25 +- src/Orangehill/Iseed/Iseed.php | 613 +- src/Orangehill/Iseed/IseedCommand.php | 237 +- src/Orangehill/Iseed/IseedServiceProvider.php | 122 +- src/Orangehill/Iseed/Stubs/seed.stub | 26 +- src/config/config.php | 5 +- tests/IseedTest.php | 1080 ++-- tests/Stubs/seed.stub | 26 +- tests/Stubs/seed_5.stub | 78 +- tests/Stubs/seed_505.stub | 5082 +++++++++-------- tests/Stubs/seed_blank.stub | 24 +- 13 files changed, 3828 insertions(+), 3581 deletions(-) diff --git a/README.md b/README.md index 2fca48b..5eedf74 100755 --- a/README.md +++ b/README.md @@ -25,6 +25,88 @@ If you wish to install it on Laravel 4 you should require 1.1 version: composer update +## Artisan command options + +### [table_name] +Mandatory parameter which defines which table/s will be used for seed creation. +Use CSV notation for multiple tables. Seed file will be generated for each table. + +Examples: +``` +php artisan iseed my_table +``` +``` +php artisan iseed my_table,another_table +``` + +### force +Optional parameter which is used to automatically overwrite any existing seeds for desired tables + +Example: +The following command will overwrite `UsersTableSeeder.php` if it already exists in laravel's seeds directory. +``` +php artisan iseed users --force +``` + +### clean +Optional parameter which will clean `app/database/seeds/DatabaseSeeder.php` before creating new seed class. + +Example: +``` +php artisan iseed users --clean +``` + +### database +Optional parameter which specifies the DB connection name. + +Example: +``` +php artisan iseed users --database=mysql2 +``` + +### max +Optional parameter which defines the maximum number of entries seeded from a specified table. In case of multiple tables, limit will be applied to all of them. + +Example: +``` +artisan iseed users --max=10 +``` + +### prerun +Optional parameter which assigns a laravel event name to be fired before seeding takes place. If an event listener returns `false`, seed will fail automatically. +You can assign multiple preruns for multiple table names by passing an array of comma separated DB names and respectively passing a comma separated array of prerun event names. + +Example: +The following command will make a seed file which will fire an event named 'someEvent' before seeding takes place. +``` +artisan iseed users --prerun=someEvent +``` +The following example will assign `someUserEvent` to `users` table seed, and `someGroupEvent` to `groups` table seed, to be executed before seeding. +``` +artisan iseed users,groups --prerun=someUserEvent,someGroupEvent +``` +The following example will only assign a `someGroupEvent` to `groups` table seed, to be executed before seeding. Value for the users table prerun was omitted here, so `users` table seed will have no prerun event assigned. +``` +artisan iseed users,groups --prerun=,someGroupEvent +``` + +### postrun +Optional parameter which assigns a laravel event name to be fired after seeding takes place. If an event listener returns `false`, seed will be executed, but an exception will be thrown that the postrun failed. +You can assign multiple postruns for multiple table names by passing an array of comma separated DB names and respectively passing a comma separated array of postrun event names. + +Example: +The following command will make a seed file which will fire an event named 'someEvent' after seeding was completed. +``` +artisan iseed users --postrun=someEvent +``` +The following example will assign `someUserEvent` to `users` table seed, and `someGroupEvent` to `groups` table seed, to be executed after seeding. +``` +artisan iseed users,groups --postrun=someUserEvent,someGroupEvent +``` +The following example will only assign a `someGroupEvent` to `groups` table seed, to be executed after seeding. Value for the users table postrun was omitted here, so `users` table seed will have no postrun event assigned. +``` +artisan iseed users,groups --postrun=,someGroupEvent +``` ## Usage diff --git a/src/Orangehill/Iseed/Exceptions.php b/src/Orangehill/Iseed/Exceptions.php index ac0cb85..cd10130 100644 --- a/src/Orangehill/Iseed/Exceptions.php +++ b/src/Orangehill/Iseed/Exceptions.php @@ -1,3 +1,8 @@ -files = $filesystem ?: new Filesystem; - } - - /** - * Generates a seed file. - * @param string $table - * @param string $database - * @param int $max - * @return bool - * @throws Orangehill\Iseed\TableNotFoundException - */ - public function generateSeed($table, $database = null, $max = 0) - { - if(!$database) { - $database = config('database.default'); - } - - $this->connection = $database; - - // Check if table exists - if (!$this->hasTable($table)) throw new TableNotFoundException("Table $table was not found."); - - // Get the data - $data = $this->getData($table, $max); - - // Repack the data - $dataArray = $this->repackSeedData($data); - - // Generate class name - $className = $this->generateClassName($table); - - // Get template for a seed file contents - $stub = $this->files->get($this->getStubPath() . '/seed.stub'); - - // Get a seed folder path - $seedPath = $this->getSeedPath(); - - // Get a app/database/seeds path - $seedsPath = $this->getPath($className, $seedPath); - - // Get a populated stub file - $seedContent = $this->populateStub($className, $stub, $table, $dataArray); - - // Save a populated stub - $this->files->put($seedsPath, $seedContent); - - // Update the DatabaseSeeder.php file - return $this->updateDatabaseSeederRunMethod($className) !== false; - } - - /** - * Get a seed folder path - * @return string - */ - public function getSeedPath() - { - return base_path() . config('iseed::config.path'); - } - - /** - * Get the Data - * @param string $table - * @return Array - */ - public function getData($table, $max) - { - if(!$max) { - return \DB::connection($this->connection)->table($table)->get(); - } - - return \DB::connection($this->connection)->table($table)->limit($max)->get(); - } - - /** - * Repacks data read from the database - * @param array|object $data - * @return array - */ - public function repackSeedData($data) - { - $dataArray = array(); - if(is_array($data)) { - foreach ($data as $row) { - $rowArray = array(); - foreach($row as $columnName => $columnValue) { - $rowArray[$columnName] = $columnValue; - } - $dataArray[] = $rowArray; - } - } - return $dataArray; - } - - /** - * Checks if a database table exists - * @param string $table - * @return boolean - */ - public function hasTable($table) - { - return \Schema::connection($this->connection)->hasTable($table); - } - - /** - * Generates a seed class name (also used as a filename) - * @param string $table - * @return string - */ - public function generateClassName($table) - { - $tableString = ''; - $tableName = explode('_', $table); - foreach($tableName as $tableNameExploded) { - $tableString .= ucfirst($tableNameExploded); - } - return ucfirst($tableString) . 'TableSeeder'; - } - - /** - * Get the path to the stub file. - * @return string - */ - public function getStubPath() - { - return __DIR__ . '/Stubs'; - } - - /** - * Populate the place-holders in the seed stub. - * @param string $class - * @param string $stub - * @param string $table - * @param string $data - * @param int $chunkSize - * @return string - */ - public function populateStub($class, $stub, $table, $data, $chunkSize = null) - { - $chunkSize = $chunkSize ?: config('iseed::config.chunk_size'); - $inserts = ''; - $chunks = array_chunk($data, $chunkSize); +class Iseed +{ + /** + * Name of the database upon which the seed will be executed. + * + * @var string + */ + protected $databaseName; + + /** + * New line character for seed files. + * Double quotes are mandatory! + * + * @var string + */ + private $newLineCharacter = "\r\n"; + + /** + * Desired indent for the code. + * For tabulator use \t + * Double quotes are mandatory! + * + * @var string + */ + private $indentCharacter = " "; + + public function __construct(Filesystem $filesystem = null) + { + $this->files = $filesystem ? : new Filesystem; + } + + /** + * Generates a seed file. + * @param string $table + * @param string $database + * @param int $max + * @param string $prerunEvent + * @param string $postunEvent + * @return bool + * @throws Orangehill\Iseed\TableNotFoundException + */ + public function generateSeed($table, $database = null, $max = 0, $prerunEvent = null, $postrunEvent = null) + { + if (!$database) { + $database = config('database.default'); + } + + $this->databaseName = $database; + + // Check if table exists + if (!$this->hasTable($table)) { + throw new TableNotFoundException("Table $table was not found."); + } + + // Get the data + $data = $this->getData($table, $max); + + // Repack the data + $dataArray = $this->repackSeedData($data); + + // Generate class name + $className = $this->generateClassName($table); + + // Get template for a seed file contents + $stub = $this->files->get($this->getStubPath().'/seed.stub'); + + // Get a seed folder path + $seedPath = $this->getSeedPath(); + + // Get a app/database/seeds path + $seedsPath = $this->getPath($className, $seedPath); + + // Get a populated stub file + $seedContent = $this->populateStub( + $className, + $stub, + $table, + $dataArray, + null, + $prerunEvent, + $postrunEvent + ); + + // Save a populated stub + $this->files->put($seedsPath, $seedContent); + + // Update the DatabaseSeeder.php file + return $this->updateDatabaseSeederRunMethod($className) !== false; + } + + /** + * Get a seed folder path + * @return string + */ + public function getSeedPath() + { + return base_path().config('iseed::config.path'); + } + + /** + * Get the Data + * @param string $table + * @return 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(); + } + + /** + * Repacks data read from the database + * @param array|object $data + * @return array + */ + public function repackSeedData($data) + { + $dataArray = array(); + if (is_array($data)) { + foreach ($data as $row) { + $rowArray = array(); + foreach ($row as $columnName => $columnValue) { + $rowArray[$columnName] = $columnValue; + } + $dataArray[] = $rowArray; + } + } + return $dataArray; + } + + /** + * Checks if a database table exists + * @param string $table + * @return boolean + */ + public function hasTable($table) + { + return \Schema::connection($this->databaseName)->hasTable($table); + } + + /** + * Generates a seed class name (also used as a filename) + * @param string $table + * @return string + */ + public function generateClassName($table) + { + $tableString = ''; + $tableName = explode('_', $table); + foreach ($tableName as $tableNameExploded) { + $tableString .= ucfirst($tableNameExploded); + } + return ucfirst($tableString).'TableSeeder'; + } + + /** + * Get the path to the stub file. + * @return string + */ + public function getStubPath() + { + return __DIR__.DIRECTORY_SEPARATOR.'Stubs'; + } + + /** + * Populate the place-holders in the seed stub. + * @param string $class + * @param string $stub + * @param string $table + * @param string $data + * @param int $chunkSize + * @param string $prerunEvent + * @param string $postunEvent + * @return string + */ + public function populateStub($class, $stub, $table, $data, $chunkSize = null, $prerunEvent = null, $postrunEvent = null) + { + $chunkSize = $chunkSize ? : config('iseed::config.chunk_size'); + $inserts = ''; + $chunks = array_chunk($data, $chunkSize); foreach ($chunks as $chunk) { - $inserts .= sprintf("\n\t\t\DB::table('%s')->insert(%s);", $table, $this->prettifyArray($chunk)); + $this->addNewLines($inserts); + $this->addIndent($inserts, 2); + $inserts .= sprintf( + "\DB::table('%s')->insert(%s);", + $table, + $this->prettifyArray($chunk) + ); } - - $stub = str_replace('{{class}}', $class, $stub); - - if (!is_null($table)) { - $stub = str_replace('{{table}}', $table, $stub); - } - - $stub = str_replace('{{insert_statements}}', $inserts, $stub); - - return $stub; - } - - /** - * Create the full path name to the seed file. - * @param string $name - * @param string $path - * @return string - */ - public function getPath($name, $path) - { - return $path . '/' . $name . '.php'; - } - - /** - * Prettify a var_export of an array - * @param array $array - * @return string - */ - protected function prettifyArray($array) - { - $content = var_export($array, true); - - $lines = explode("\n", $content); - - $inString = false; - $tabCount = 3; - for($i = 1; $i < count($lines); $i++) { - $lines[$i] = ltrim($lines[$i]); - - //Check for closing bracket - if(strpos($lines[$i], ')') !== false) { - $tabCount--; - } - - //Insert tab count - if ($inString === false) { - for($j = 0; $j < $tabCount; $j++) { - $lines[$i] = substr_replace($lines[$i], "\t", 0, 0); - } - } - - for($j = 0; $j < strlen($lines[$i]); $j++) { - //skip character right after an escape \ - if($lines[$i][$j] == '\\') { - $j++; - } - //check string open/end - else if($lines[$i][$j] == '\'') { - $inString = !$inString; - } - } - - //check for openning bracket - if(strpos($lines[$i], '(') !== false) { - $tabCount++; - } - } - - $content = implode("\n", $lines); - - return $content; - } - - /** - * Cleans the iSeed section - * @return bool - */ - public function cleanSection() - { - $databaseSeederPath = base_path() . config('iseed::config.path') . '/DatabaseSeeder.php'; - - $content = $this->files->get($databaseSeederPath); - - $content = preg_replace("/(\#iseed_start.+?)\#iseed_end/us", "#iseed_start\n\t\t#iseed_end", $content); - - return $this->files->put($databaseSeederPath, $content) !== false; + + $stub = str_replace('{{class}}', $class, $stub); + + $prerunEventInsert = ''; + if ($prerunEvent) { + $prerunEventInsert .= "\$response = Event::fire(new $prerunEvent());"; + $this->addNewLines($prerunEventInsert); + $this->addIndent($prerunEventInsert, 2); + $prerunEventInsert .= 'if ($response === false) {'; + $this->addNewLines($prerunEventInsert); + $this->addIndent($prerunEventInsert, 3); + $prerunEventInsert .= 'throw new Exception("Prerun event failed, seed wasn\'t executed!");'; + $this->addNewLines($prerunEventInsert); + $this->addIndent($prerunEventInsert, 2); + $prerunEventInsert .= '}'; + } + + $stub = str_replace( + '{{prerun_event}}', $prerunEventInsert, $stub + ); + + if (!is_null($table)) { + $stub = str_replace('{{table}}', $table, $stub); + } + + $postrunEventInsert = ''; + if ($postrunEvent) { + $postrunEventInsert .= "\$response = Event::fire(new $postrunEvent());"; + $this->addNewLines($postrunEventInsert); + $this->addIndent($postrunEventInsert, 2); + $postrunEventInsert .= 'if ($response === false) {'; + $this->addNewLines($postrunEventInsert); + $this->addIndent($postrunEventInsert, 3); + $postrunEventInsert .= 'throw new Exception("Seed was executed but the postrun event failed!");'; + $this->addNewLines($postrunEventInsert); + $this->addIndent($postrunEventInsert, 2); + $postrunEventInsert .= '}'; + } + + $stub = str_replace( + '{{postrun_event}}', $postrunEventInsert, $stub + ); + + $stub = str_replace('{{insert_statements}}', $inserts, $stub); + + return $stub; + } + + /** + * Create the full path name to the seed file. + * @param string $name + * @param string $path + * @return string + */ + public function getPath($name, $path) + { + return $path.'/'.$name.'.php'; + } + + /** + * Prettify a var_export of an array + * @param array $array + * @return string + */ + protected function prettifyArray($array) + { + $content = var_export($array, true); + + $lines = explode("\n", $content); + + $inString = false; + $tabCount = 3; + for ($i = 1; $i < count($lines); $i++) { + $lines[$i] = ltrim($lines[$i]); + + //Check for closing bracket + if (strpos($lines[$i], ')') !== false) { + $tabCount--; + } + + //Insert tab count + if ($inString === false) { + for ($j = 0; $j < $tabCount; $j++) { + $lines[$i] = substr_replace($lines[$i], $this->indentCharacter, 0, 0); + } + } + + for ($j = 0; $j < strlen($lines[$i]); $j++) { + //skip character right after an escape \ + if ($lines[$i][$j] == '\\') { + $j++; + } + //check string open/end + else if ($lines[$i][$j] == '\'') { + $inString = !$inString; + } + } + + //check for openning bracket + if (strpos($lines[$i], '(') !== false) { + $tabCount++; + } + } + + $content = implode("\n", $lines); + + return $content; + } + + /** + * Adds new lines to the passed content variable reference. + * + * @param string $content + * @param int $numberOfLines + */ + private function addNewLines(&$content, $numberOfLines = 1) + { + while ($numberOfLines > 0) { + $content .= $this->newLineCharacter; + $numberOfLines--; + } + } + + /** + * Adds indentation to the passed content reference. + * + * @param string $content + * @param int $numberOfIndents + */ + private function addIndent(&$content, $numberOfIndents = 1) + { + while ($numberOfIndents > 0) { + $content .= $this->indentCharacter; + $numberOfIndents--; + } + } + + /** + * Cleans the iSeed section + * @return bool + */ + public function cleanSection() + { + $databaseSeederPath = base_path().config('iseed::config.path').'/DatabaseSeeder.php'; + + $content = $this->files->get($databaseSeederPath); + + $content = preg_replace("/(\#iseed_start.+?)\#iseed_end/us", "#iseed_start\n\t\t#iseed_end", $content); + + return $this->files->put($databaseSeederPath, $content) !== false; return false; - } + } /** - * Updates the DatabaseSeeder file's run method (kudoz to: https://github.com/JeffreyWay/Laravel-4-Generators) - * @param string $className - * @return bool - */ + * Updates the DatabaseSeeder file's run method (kudoz to: https://github.com/JeffreyWay/Laravel-4-Generators) + * @param string $className + * @return bool + */ public function updateDatabaseSeederRunMethod($className) { - $databaseSeederPath = base_path() . config('iseed::config.path') . '/DatabaseSeeder.php'; + $databaseSeederPath = base_path().config('iseed::config.path').'/DatabaseSeeder.php'; $content = $this->files->get($databaseSeederPath); - if(strpos($content, "\$this->call('{$className}')")===false) - { - if(strpos($content, '#iseed_start') && strpos($content, '#iseed_end') && strpos($content, '#iseed_start') < strpos($content, '#iseed_end')) - { - $content = preg_replace("/(\#iseed_start.+?)\#iseed_end/us", "$1\$this->call('{$className}');\n\t\t#iseed_end", $content); - } - else - { - $content = preg_replace("/(run\(\).+?)}/us", "$1\t\$this->call('{$className}');\n\t}", $content); - } + if (strpos($content, "\$this->call('{$className}')") === false) { + if ( + strpos($content, '#iseed_start') && + strpos($content, '#iseed_end') && + strpos($content, '#iseed_start') < strpos($content, '#iseed_end') + ) { + $content = preg_replace("/(\#iseed_start.+?)(\#iseed_end)/us", "$1\$this->call('{$className}');{$this->newLineCharacter}{$this->indentCharacter}{$this->indentCharacter}$2", $content); + } else { + $content = preg_replace("/(run\(\).+?)}/us", "$1{$this->indentCharacter}\$this->call('{$className}');{$this->newLineCharacter}{$this->indentCharacter}}", $content); + } } return $this->files->put($databaseSeederPath, $content) !== false; } - -} +} \ No newline at end of file diff --git a/src/Orangehill/Iseed/IseedCommand.php b/src/Orangehill/Iseed/IseedCommand.php index a44c28d..574c121 100644 --- a/src/Orangehill/Iseed/IseedCommand.php +++ b/src/Orangehill/Iseed/IseedCommand.php @@ -1,101 +1,134 @@ -option('clean')) { - app('iseed')->cleanSection(); - } - - $tables = explode(",", $this->argument('tables')); - $chunkSize = intval($this->option('max')); - - if($chunkSize < 1) { - $chunkSize = null; - } - - foreach ($tables as $table) { - $table = trim($table); - - // generate file and class name based on name of the table - list($fileName, $className) = $this->generateFileName($table); - - // if file does not exist or force option is turned on generate seeder - if(!\File::exists($fileName) || $this->option('force')) { - $this->printResult(app('iseed')->generateSeed($table, $this->option('database'), $chunkSize), $table); - continue; - } - - if($this->confirm('File ' . $className . ' already exist. Do you wish to override it? [yes|no]')) { - // if user said yes overwrite old seeder - $this->printResult(app('iseed')->generateSeed($table, $this->option('database'), $chunkSize), $table); - } - } - - return; - } - - /** - * Get the console command arguments. - * - * @return array - */ - protected function getArguments() - { - return array( - array('tables', InputArgument::REQUIRED, 'comma separated string of table names'), - ); - } - - /** - * Get the console command options. - * - * @return array - */ - protected function getOptions() - { - return array( - array('clean', null, InputOption::VALUE_NONE, 'clean iseed section', null), - array('force', null, InputOption::VALUE_NONE, 'force overwrite of all existing seed classes', null), - array('database', null, InputOption::VALUE_OPTIONAL, 'database connection', \Config::get('database.default')), - array('max', null, InputOption::VALUE_OPTIONAL, 'max number of rows', null), - ); - } +class IseedCommand extends Command +{ + /** + * The console command name. + * + * @var string + */ + protected $name = 'iseed'; + + /** + * The console command description. + * + * @var string + */ + protected $description = 'Generate seed file from table'; + + /** + * Create a new command instance. + * + * @return \Orangehill\Iseed\IseedCommand + */ + public function __construct() + { + parent::__construct(); + } + + /** + * Execute the console command. + * + * @return void + */ + public function fire() + { + // if clean option is checked empty iSeed template in DatabaseSeeder.php + if ($this->option('clean')) { + app('iseed')->cleanSection(); + } + + $tables = explode(",", $this->argument('tables')); + $chunkSize = intval($this->option('max')); + $prerunEvents = explode(",", $this->option('prerun')); + $postrunEvents = explode(",", $this->option('postrun')); + + if ($chunkSize < 1) { + $chunkSize = null; + } + + $tableIncrement = 0; + foreach ($tables as $table) { + $table = trim($table); + $prerunEvent = null; + if (isset($prerunEvents[$tableIncrement])) { + $prerunEvent = trim($prerunEvents[$tableIncrement]); + } + $postrunEvent = null; + if (isset($postrunEvents[$tableIncrement])) { + $postrunEvent = trim($postrunEvents[$tableIncrement]); + } + $tableIncrement++; + + // generate file and class name based on name of the table + list($fileName, $className) = $this->generateFileName($table); + + // if file does not exist or force option is turned on generate seeder + if (!\File::exists($fileName) || $this->option('force')) { + $this->printResult( + app('iseed')->generateSeed( + $table, + $this->option('database'), + $chunkSize, + $prerunEvent, + $postrunEvent + ), + $table + ); + continue; + } + + if ($this->confirm('File '.$className.' already exist. Do you wish to override it? [yes|no]')) { + // if user said yes overwrite old seeder + $this->printResult( + app('iseed')->generateSeed( + $table, + $this->option('database'), + $chunkSize, $prerunEvent, + $postrunEvent + ), + $table + ); + } + } + + return; + } + + /** + * Get the console command arguments. + * + * @return array + */ + protected function getArguments() + { + return array( + array('tables', InputArgument::REQUIRED, 'comma separated string of table names'), + ); + } + + /** + * Get the console command options. + * + * @return array + */ + protected function getOptions() + { + return array( + array('clean', null, InputOption::VALUE_NONE, 'clean iseed section', null), + array('force', null, InputOption::VALUE_NONE, 'force overwrite of all existing seed classes', null), + array('database', null, InputOption::VALUE_OPTIONAL, 'database connection', \Config::get('database.default')), + array('max', null, InputOption::VALUE_OPTIONAL, 'max number of rows', null), + array('prerun', null, InputOption::VALUE_OPTIONAL, 'prerun event name', null), + array('postrun', null, InputOption::VALUE_OPTIONAL, 'postrun event name', null), + ); + } /** * Provide user feedback, based on success or not. @@ -106,8 +139,7 @@ protected function getOptions() */ protected function printResult($successful, $table) { - if ($successful) - { + if ($successful) { $this->info("Created a seed file from table {$table}"); return; } @@ -123,14 +155,13 @@ protected function printResult($successful, $table) */ protected function generateFileName($table) { - if(!\Schema::hasTable($table)) { - throw new TableNotFoundException("Table $table was not found."); - } - - // Generate class name and file name - $className = app('iseed')->generateClassName($table); - $seedPath = base_path() . config('iseed::config.path'); - return [$seedPath . '/' . $className . '.php', $className . '.php']; + if (!\Schema::hasTable($table)) { + throw new TableNotFoundException("Table $table was not found."); + } + // Generate class name and file name + $className = app('iseed')->generateClassName($table); + $seedPath = base_path().config('iseed::config.path'); + return [$seedPath.'/'.$className.'.php', $className.'.php']; } } diff --git a/src/Orangehill/Iseed/IseedServiceProvider.php b/src/Orangehill/Iseed/IseedServiceProvider.php index bf843d2..c3330d0 100644 --- a/src/Orangehill/Iseed/IseedServiceProvider.php +++ b/src/Orangehill/Iseed/IseedServiceProvider.php @@ -1,79 +1,77 @@ -registerResources(); - - $this->app['iseed'] = $this->app->share(function($app) - { - return new Iseed; - }); - $this->app->booting(function() - { - $loader = \Illuminate\Foundation\AliasLoader::getInstance(); - $loader->alias('Iseed', 'Orangehill\Iseed\Facades\Iseed'); - }); + /** + * Register the service provider. + * + * @return void + */ + public function register() + { + $this->registerResources(); - $this->app['command.iseed'] = $this->app->share(function($app) - { - return new IseedCommand; - }); - $this->commands('command.iseed'); - } + $this->app['iseed'] = $this->app->share(function($app) { + return new Iseed; + }); + $this->app->booting(function() { + $loader = \Illuminate\Foundation\AliasLoader::getInstance(); + $loader->alias('Iseed', 'Orangehill\Iseed\Facades\Iseed'); + }); - /** - * Get the services provided by the provider. - * - * @return array - */ - public function provides() - { - return array('iseed'); - } + $this->app['command.iseed'] = $this->app->share(function($app) { + return new IseedCommand; + }); + $this->commands('command.iseed'); + } - /** - * Register the package resources. - * - * @return void - */ - protected function registerResources() - { - $userConfigFile = app()->configPath().'/iseed.php'; - $packageConfigFile = __DIR__.'/../../config/config.php'; - $config = $this->app['files']->getRequire($packageConfigFile); + /** + * Get the services provided by the provider. + * + * @return array + */ + public function provides() + { + return array('iseed'); + } - if (file_exists($userConfigFile)) { - $userConfig = $this->app['files']->getRequire($userConfigFile); - $config = array_replace_recursive($config, $userConfig); - } + /** + * Register the package resources. + * + * @return void + */ + protected function registerResources() + { + $userConfigFile = app()->configPath().'/iseed.php'; + $packageConfigFile = __DIR__.'/../../config/config.php'; + $config = $this->app['files']->getRequire($packageConfigFile); - $this->app['config']->set('iseed::config', $config); - } + if (file_exists($userConfigFile)) { + $userConfig = $this->app['files']->getRequire($userConfigFile); + $config = array_replace_recursive($config, $userConfig); + } -} + $this->app['config']->set('iseed::config', $config); + } +} \ No newline at end of file diff --git a/src/Orangehill/Iseed/Stubs/seed.stub b/src/Orangehill/Iseed/Stubs/seed.stub index 29785cb..382eb2a 100644 --- a/src/Orangehill/Iseed/Stubs/seed.stub +++ b/src/Orangehill/Iseed/Stubs/seed.stub @@ -2,17 +2,21 @@ use Illuminate\Database\Seeder; -class {{class}} extends Seeder { +class {{class}} extends Seeder +{ - /** - * Auto generated seed file - * - * @return void - */ - public function run() - { - \DB::table('{{table}}')->delete(); - {{insert_statements}} - } + /** + * Auto generated seed file + * + * @return void + */ + public function run() + { + {{prerun_event}} + \DB::table('{{table}}')->delete(); + {{insert_statements}} + + {{postrun_event}} + } } diff --git a/src/config/config.php b/src/config/config.php index c13edab..3520cee 100644 --- a/src/config/config.php +++ b/src/config/config.php @@ -1,8 +1,5 @@ '/database/seeds', + 'path' => '/database/seeds', 'chunk_size' => 500 // Maximum number of rows per insert statement - ); diff --git a/tests/IseedTest.php b/tests/IseedTest.php index 9bcc476..177cc47 100644 --- a/tests/IseedTest.php +++ b/tests/IseedTest.php @@ -1,15 +1,16 @@ array( - 'content' => file_get_contents(static::$testStubsDir . '/seed_blank.stub'), - 'data' => array() + 'blank' => array( + 'content' => file_get_contents(static::$testStubsDir.'/seed_blank.stub'), + 'data' => array() ), - 'entries_5' => array( - 'content' => file_get_contents(static::$testStubsDir . '/seed_5.stub'), - 'data' => array( + 'entries_5' => array( + 'content' => file_get_contents(static::$testStubsDir.'/seed_5.stub'), + 'data' => array( array( - 'id' => '1', + 'id' => '1', 'time' => '2013-10-18 14:28:51', ), array( - 'id' => '2', + 'id' => '2', 'time' => '2013-10-18 14:28:51', ), array( - 'id' => '3', + 'id' => '3', 'time' => '2013-10-18 14:28:51', ), array( - 'id' => '4', + 'id' => '4', 'time' => '2013-10-18 14:28:51', ), array( - 'id' => '5', + 'id' => '5', 'time' => '2013-10-18 14:28:51', ) ) ), 'entries_505' => array( - 'content' => file_get_contents(static::$testStubsDir . '/seed_505.stub'), - 'data' => array( + 'content' => file_get_contents(static::$testStubsDir.'/seed_505.stub'), + 'data' => array( array( - 'id' => '1', + 'id' => '1', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '2', + 'id' => '2', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '3', + 'id' => '3', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '4', + 'id' => '4', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '5', + 'id' => '5', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '6', + 'id' => '6', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '7', + 'id' => '7', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '8', + 'id' => '8', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '9', + 'id' => '9', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '10', + 'id' => '10', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '11', + 'id' => '11', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '12', + 'id' => '12', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '13', + 'id' => '13', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '14', + 'id' => '14', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '15', + 'id' => '15', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '16', + 'id' => '16', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '17', + 'id' => '17', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '18', + 'id' => '18', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '19', + 'id' => '19', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '20', + 'id' => '20', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '21', + 'id' => '21', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '22', + 'id' => '22', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '23', + 'id' => '23', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '24', + 'id' => '24', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '25', + 'id' => '25', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '26', + 'id' => '26', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '27', + 'id' => '27', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '28', + 'id' => '28', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '29', + 'id' => '29', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '30', + 'id' => '30', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '31', + 'id' => '31', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '32', + 'id' => '32', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '33', + 'id' => '33', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '34', + 'id' => '34', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '35', + 'id' => '35', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '36', + 'id' => '36', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '37', + 'id' => '37', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '38', + 'id' => '38', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '39', + 'id' => '39', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '40', + 'id' => '40', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '41', + 'id' => '41', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '42', + 'id' => '42', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '43', + 'id' => '43', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '44', + 'id' => '44', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '45', + 'id' => '45', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '46', + 'id' => '46', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '47', + 'id' => '47', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '48', + 'id' => '48', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '49', + 'id' => '49', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '50', + 'id' => '50', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '51', + 'id' => '51', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '52', + 'id' => '52', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '53', + 'id' => '53', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '54', + 'id' => '54', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '55', + 'id' => '55', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '56', + 'id' => '56', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '57', + 'id' => '57', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '58', + 'id' => '58', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '59', + 'id' => '59', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '60', + 'id' => '60', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '61', + 'id' => '61', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '62', + 'id' => '62', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '63', + 'id' => '63', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '64', + 'id' => '64', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '65', + 'id' => '65', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '66', + 'id' => '66', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '67', + 'id' => '67', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '68', + 'id' => '68', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '69', + 'id' => '69', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '70', + 'id' => '70', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '71', + 'id' => '71', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '72', + 'id' => '72', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '73', + 'id' => '73', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '74', + 'id' => '74', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '75', + 'id' => '75', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '76', + 'id' => '76', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '77', + 'id' => '77', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '78', + 'id' => '78', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '79', + 'id' => '79', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '80', + 'id' => '80', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '81', + 'id' => '81', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '82', + 'id' => '82', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '83', + 'id' => '83', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '84', + 'id' => '84', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '85', + 'id' => '85', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '86', + 'id' => '86', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '87', + 'id' => '87', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '88', + 'id' => '88', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '89', + 'id' => '89', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '90', + 'id' => '90', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '91', + 'id' => '91', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '92', + 'id' => '92', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '93', + 'id' => '93', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '94', + 'id' => '94', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '95', + 'id' => '95', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '96', + 'id' => '96', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '97', + 'id' => '97', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '98', + 'id' => '98', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '99', + 'id' => '99', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '100', + 'id' => '100', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '101', + 'id' => '101', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '102', + 'id' => '102', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '103', + 'id' => '103', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '104', + 'id' => '104', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '105', + 'id' => '105', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '106', + 'id' => '106', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '107', + 'id' => '107', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '108', + 'id' => '108', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '109', + 'id' => '109', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '110', + 'id' => '110', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '111', + 'id' => '111', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '112', + 'id' => '112', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '113', + 'id' => '113', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '114', + 'id' => '114', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '115', + 'id' => '115', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '116', + 'id' => '116', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '117', + 'id' => '117', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '118', + 'id' => '118', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '119', + 'id' => '119', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '120', + 'id' => '120', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '121', + 'id' => '121', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '122', + 'id' => '122', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '123', + 'id' => '123', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '124', + 'id' => '124', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '125', + 'id' => '125', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '126', + 'id' => '126', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '127', + 'id' => '127', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '128', + 'id' => '128', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '129', + 'id' => '129', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '130', + 'id' => '130', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '131', + 'id' => '131', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '132', + 'id' => '132', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '133', + 'id' => '133', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '134', + 'id' => '134', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '135', + 'id' => '135', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '136', + 'id' => '136', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '137', + 'id' => '137', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '138', + 'id' => '138', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '139', + 'id' => '139', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '140', + 'id' => '140', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '141', + 'id' => '141', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '142', + 'id' => '142', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '143', + 'id' => '143', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '144', + 'id' => '144', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '145', + 'id' => '145', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '146', + 'id' => '146', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '147', + 'id' => '147', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '148', + 'id' => '148', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '149', + 'id' => '149', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '150', + 'id' => '150', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '151', + 'id' => '151', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '152', + 'id' => '152', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '153', + 'id' => '153', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '154', + 'id' => '154', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '155', + 'id' => '155', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '156', + 'id' => '156', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '157', + 'id' => '157', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '158', + 'id' => '158', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '159', + 'id' => '159', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '160', + 'id' => '160', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '161', + 'id' => '161', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '162', + 'id' => '162', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '163', + 'id' => '163', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '164', + 'id' => '164', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '165', + 'id' => '165', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '166', + 'id' => '166', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '167', + 'id' => '167', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '168', + 'id' => '168', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '169', + 'id' => '169', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '170', + 'id' => '170', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '171', + 'id' => '171', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '172', + 'id' => '172', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '173', + 'id' => '173', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '174', + 'id' => '174', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '175', + 'id' => '175', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '176', + 'id' => '176', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '177', + 'id' => '177', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '178', + 'id' => '178', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '179', + 'id' => '179', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '180', + 'id' => '180', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '181', + 'id' => '181', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '182', + 'id' => '182', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '183', + 'id' => '183', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '184', + 'id' => '184', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '185', + 'id' => '185', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '186', + 'id' => '186', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '187', + 'id' => '187', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '188', + 'id' => '188', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '189', + 'id' => '189', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '190', + 'id' => '190', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '191', + 'id' => '191', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '192', + 'id' => '192', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '193', + 'id' => '193', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '194', + 'id' => '194', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '195', + 'id' => '195', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '196', + 'id' => '196', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '197', + 'id' => '197', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '198', + 'id' => '198', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '199', + 'id' => '199', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '200', + 'id' => '200', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '201', + 'id' => '201', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '202', + 'id' => '202', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '203', + 'id' => '203', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '204', + 'id' => '204', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '205', + 'id' => '205', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '206', + 'id' => '206', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '207', + 'id' => '207', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '208', + 'id' => '208', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '209', + 'id' => '209', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '210', + 'id' => '210', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '211', + 'id' => '211', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '212', + 'id' => '212', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '213', + 'id' => '213', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '214', + 'id' => '214', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '215', + 'id' => '215', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '216', + 'id' => '216', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '217', + 'id' => '217', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '218', + 'id' => '218', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '219', + 'id' => '219', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '220', + 'id' => '220', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '221', + 'id' => '221', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '222', + 'id' => '222', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '223', + 'id' => '223', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '224', + 'id' => '224', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '225', + 'id' => '225', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '226', + 'id' => '226', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '227', + 'id' => '227', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '228', + 'id' => '228', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '229', + 'id' => '229', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '230', + 'id' => '230', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '231', + 'id' => '231', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '232', + 'id' => '232', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '233', + 'id' => '233', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '234', + 'id' => '234', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '235', + 'id' => '235', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '236', + 'id' => '236', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '237', + 'id' => '237', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '238', + 'id' => '238', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '239', + 'id' => '239', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '240', + 'id' => '240', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '241', + 'id' => '241', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '242', + 'id' => '242', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '243', + 'id' => '243', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '244', + 'id' => '244', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '245', + 'id' => '245', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '246', + 'id' => '246', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '247', + 'id' => '247', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '248', + 'id' => '248', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '249', + 'id' => '249', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '250', + 'id' => '250', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '251', + 'id' => '251', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '252', + 'id' => '252', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '253', + 'id' => '253', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '254', + 'id' => '254', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '255', + 'id' => '255', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '256', + 'id' => '256', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '257', + 'id' => '257', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '258', + 'id' => '258', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '259', + 'id' => '259', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '260', + 'id' => '260', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '261', + 'id' => '261', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '262', + 'id' => '262', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '263', + 'id' => '263', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '264', + 'id' => '264', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '265', + 'id' => '265', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '266', + 'id' => '266', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '267', + 'id' => '267', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '268', + 'id' => '268', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '269', + 'id' => '269', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '270', + 'id' => '270', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '271', + 'id' => '271', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '272', + 'id' => '272', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '273', + 'id' => '273', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '274', + 'id' => '274', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '275', + 'id' => '275', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '276', + 'id' => '276', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '277', + 'id' => '277', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '278', + 'id' => '278', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '279', + 'id' => '279', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '280', + 'id' => '280', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '281', + 'id' => '281', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '282', + 'id' => '282', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '283', + 'id' => '283', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '284', + 'id' => '284', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '285', + 'id' => '285', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '286', + 'id' => '286', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '287', + 'id' => '287', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '288', + 'id' => '288', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '289', + 'id' => '289', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '290', + 'id' => '290', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '291', + 'id' => '291', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '292', + 'id' => '292', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '293', + 'id' => '293', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '294', + 'id' => '294', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '295', + 'id' => '295', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '296', + 'id' => '296', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '297', + 'id' => '297', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '298', + 'id' => '298', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '299', + 'id' => '299', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '300', + 'id' => '300', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '301', + 'id' => '301', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '302', + 'id' => '302', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '303', + 'id' => '303', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '304', + 'id' => '304', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '305', + 'id' => '305', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '306', + 'id' => '306', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '307', + 'id' => '307', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '308', + 'id' => '308', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '309', + 'id' => '309', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '310', + 'id' => '310', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '311', + 'id' => '311', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '312', + 'id' => '312', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '313', + 'id' => '313', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '314', + 'id' => '314', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '315', + 'id' => '315', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '316', + 'id' => '316', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '317', + 'id' => '317', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '318', + 'id' => '318', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '319', + 'id' => '319', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '320', + 'id' => '320', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '321', + 'id' => '321', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '322', + 'id' => '322', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '323', + 'id' => '323', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '324', + 'id' => '324', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '325', + 'id' => '325', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '326', + 'id' => '326', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '327', + 'id' => '327', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '328', + 'id' => '328', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '329', + 'id' => '329', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '330', + 'id' => '330', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '331', + 'id' => '331', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '332', + 'id' => '332', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '333', + 'id' => '333', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '334', + 'id' => '334', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '335', + 'id' => '335', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '336', + 'id' => '336', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '337', + 'id' => '337', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '338', + 'id' => '338', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '339', + 'id' => '339', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '340', + 'id' => '340', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '341', + 'id' => '341', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '342', + 'id' => '342', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '343', + 'id' => '343', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '344', + 'id' => '344', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '345', + 'id' => '345', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '346', + 'id' => '346', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '347', + 'id' => '347', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '348', + 'id' => '348', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '349', + 'id' => '349', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '350', + 'id' => '350', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '351', + 'id' => '351', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '352', + 'id' => '352', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '353', + 'id' => '353', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '354', + 'id' => '354', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '355', + 'id' => '355', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '356', + 'id' => '356', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '357', + 'id' => '357', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '358', + 'id' => '358', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '359', + 'id' => '359', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '360', + 'id' => '360', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '361', + 'id' => '361', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '362', + 'id' => '362', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '363', + 'id' => '363', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '364', + 'id' => '364', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '365', + 'id' => '365', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '366', + 'id' => '366', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '367', + 'id' => '367', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '368', + 'id' => '368', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '369', + 'id' => '369', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '370', + 'id' => '370', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '371', + 'id' => '371', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '372', + 'id' => '372', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '373', + 'id' => '373', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '374', + 'id' => '374', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '375', + 'id' => '375', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '376', + 'id' => '376', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '377', + 'id' => '377', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '378', + 'id' => '378', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '379', + 'id' => '379', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '380', + 'id' => '380', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '381', + 'id' => '381', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '382', + 'id' => '382', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '383', + 'id' => '383', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '384', + 'id' => '384', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '385', + 'id' => '385', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '386', + 'id' => '386', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '387', + 'id' => '387', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '388', + 'id' => '388', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '389', + 'id' => '389', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '390', + 'id' => '390', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '391', + 'id' => '391', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '392', + 'id' => '392', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '393', + 'id' => '393', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '394', + 'id' => '394', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '395', + 'id' => '395', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '396', + 'id' => '396', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '397', + 'id' => '397', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '398', + 'id' => '398', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '399', + 'id' => '399', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '400', + 'id' => '400', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '401', + 'id' => '401', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '402', + 'id' => '402', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '403', + 'id' => '403', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '404', + 'id' => '404', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '405', + 'id' => '405', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '406', + 'id' => '406', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '407', + 'id' => '407', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '408', + 'id' => '408', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '409', + 'id' => '409', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '410', + 'id' => '410', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '411', + 'id' => '411', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '412', + 'id' => '412', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '413', + 'id' => '413', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '414', + 'id' => '414', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '415', + 'id' => '415', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '416', + 'id' => '416', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '417', + 'id' => '417', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '418', + 'id' => '418', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '419', + 'id' => '419', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '420', + 'id' => '420', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '421', + 'id' => '421', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '422', + 'id' => '422', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '423', + 'id' => '423', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '424', + 'id' => '424', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '425', + 'id' => '425', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '426', + 'id' => '426', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '427', + 'id' => '427', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '428', + 'id' => '428', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '429', + 'id' => '429', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '430', + 'id' => '430', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '431', + 'id' => '431', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '432', + 'id' => '432', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '433', + 'id' => '433', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '434', + 'id' => '434', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '435', + 'id' => '435', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '436', + 'id' => '436', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '437', + 'id' => '437', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '438', + 'id' => '438', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '439', + 'id' => '439', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '440', + 'id' => '440', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '441', + 'id' => '441', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '442', + 'id' => '442', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '443', + 'id' => '443', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '444', + 'id' => '444', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '445', + 'id' => '445', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '446', + 'id' => '446', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '447', + 'id' => '447', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '448', + 'id' => '448', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '449', + 'id' => '449', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '450', + 'id' => '450', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '451', + 'id' => '451', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '452', + 'id' => '452', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '453', + 'id' => '453', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '454', + 'id' => '454', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '455', + 'id' => '455', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '456', + 'id' => '456', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '457', + 'id' => '457', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '458', + 'id' => '458', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '459', + 'id' => '459', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '460', + 'id' => '460', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '461', + 'id' => '461', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '462', + 'id' => '462', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '463', + 'id' => '463', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '464', + 'id' => '464', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '465', + 'id' => '465', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '466', + 'id' => '466', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '467', + 'id' => '467', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '468', + 'id' => '468', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '469', + 'id' => '469', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '470', + 'id' => '470', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '471', + 'id' => '471', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '472', + 'id' => '472', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '473', + 'id' => '473', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '474', + 'id' => '474', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '475', + 'id' => '475', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '476', + 'id' => '476', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '477', + 'id' => '477', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '478', + 'id' => '478', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '479', + 'id' => '479', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '480', + 'id' => '480', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '481', + 'id' => '481', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '482', + 'id' => '482', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '483', + 'id' => '483', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '484', + 'id' => '484', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '485', + 'id' => '485', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '486', + 'id' => '486', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '487', + 'id' => '487', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '488', + 'id' => '488', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '489', + 'id' => '489', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '490', + 'id' => '490', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '491', + 'id' => '491', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '492', + 'id' => '492', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '493', + 'id' => '493', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '494', + 'id' => '494', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '495', + 'id' => '495', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '496', + 'id' => '496', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '497', + 'id' => '497', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '498', + 'id' => '498', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '499', + 'id' => '499', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '500', + 'id' => '500', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '501', + 'id' => '501', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '502', + 'id' => '502', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '503', + 'id' => '503', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '504', + 'id' => '504', 'time' => '2013-10-18 14:31:24', ), array( - 'id' => '505', + 'id' => '505', 'time' => '2013-10-18 14:31:24', ) ))); + $iSeed = new Orangehill\Iseed\Iseed(); - foreach ($testStubs as $key=>$stub){ + foreach ($testStubs as $key => $stub) { $output = $iSeed->populateStub('test_class', $productionStub, 'test_table', $stub['data'], 500); - $this->assertEquals($stub['content'], $output, "Stub {$key} is not what's it's expected to be."); + $this->assertEquals($stub['content'], $output, "Stub {$key} is not what it's expected to be."); } } @@ -2090,44 +2093,44 @@ public function testTableNotFoundException() { $hasTable = m::mock('Orangehill\Iseed\Iseed[hasTable]')->makePartial(); $hasTable->shouldReceive('hasTable')->once()->andReturn(false); - $hasTable->generateSeed('nonexisting','database', 'numOfRows'); + $hasTable->generateSeed('nonexisting', 'database', 'numOfRows'); } public function testRepacksSeedData() { - $data = array( + $data = array( array('id' => '1', 'name' => 'one'), array('id' => '2', 'name' => 'two') ); - $iseed = new Orangehill\Iseed\Iseed(); + $iseed = new Orangehill\Iseed\Iseed(); $output = $iseed->repackSeedData($data); $this->assertEquals(json_encode($data), json_encode($output)); } public function testCanGenerateClassName() { - $iseed = new Orangehill\Iseed\Iseed(); + $iseed = new Orangehill\Iseed\Iseed(); $output = $iseed->generateClassName('tablename'); $this->assertEquals('TablenameTableSeeder', $output); } public function testCanGetStubPath() { - $iseed = new Orangehill\Iseed\Iseed(); - $output = $iseed->getStubPath(); - $expected = substr(__DIR__, 0, -5) . 'src/Orangehill/Iseed/Stubs'; + $iseed = new Orangehill\Iseed\Iseed(); + $output = $iseed->getStubPath(); + $expected = substr(__DIR__, 0, -5).'src'.DIRECTORY_SEPARATOR.'Orangehill'.DIRECTORY_SEPARATOR.'Iseed'.DIRECTORY_SEPARATOR.'Stubs'; $this->assertEquals($expected, $output); } public function testCanGenerateSeed() { - $file = m::mock('Illuminate\Filesystem\Filesystem')->makePartial(); + $file = m::mock('Illuminate\Filesystem\Filesystem')->makePartial(); $file->shouldReceive('get') - ->once() - ->with(substr(__DIR__, 0, -5) . 'src/Orangehill/Iseed/Stubs/seed.stub'); + ->once() + ->with(substr(__DIR__, 0, -5).'src'.DIRECTORY_SEPARATOR.'Orangehill'.DIRECTORY_SEPARATOR.'Iseed'.DIRECTORY_SEPARATOR.'Stubs'.DIRECTORY_SEPARATOR.'seed.stub'); $file->shouldReceive('put') - ->once() - ->with('seedPath', 'populatedStub'); + ->once() + ->with('seedPath', 'populatedStub'); $mocked = m::mock('Orangehill\Iseed\Iseed', array($file))->makePartial(); $mocked->shouldReceive('hasTable')->once()->andReturn(true); $mocked->shouldReceive('getData')->once()->andReturn(array()); @@ -2138,5 +2141,4 @@ public function testCanGenerateSeed() $mocked->shouldReceive('updateDatabaseSeederRunMethod')->once()->with('ClassName')->andReturn(true); $mocked->generateSeed('tablename', 'database', 'numOfRows'); } - -} +} \ No newline at end of file diff --git a/tests/Stubs/seed.stub b/tests/Stubs/seed.stub index c474a65..48d7b2c 100644 --- a/tests/Stubs/seed.stub +++ b/tests/Stubs/seed.stub @@ -2,17 +2,21 @@ use Illuminate\Database\Seeder; -class test_class extends Seeder { +class test_class extends Seeder +{ - /** - * Auto generated seed file - * - * @return void - */ - public function run() - { - \DB::table('test_table')->delete(); - {{insert_statements}} - } + /** + * Auto generated seed file + * + * @return void + */ + public function run() + { + {{prerun_event}} + \DB::table('test_table')->delete(); + {{insert_statements}} + + {{postrun_event}} + } } diff --git a/tests/Stubs/seed_5.stub b/tests/Stubs/seed_5.stub index 7b2f565..dffd140 100644 --- a/tests/Stubs/seed_5.stub +++ b/tests/Stubs/seed_5.stub @@ -2,44 +2,48 @@ use Illuminate\Database\Seeder; -class test_class extends Seeder { +class test_class extends Seeder +{ - /** - * Auto generated seed file - * - * @return void - */ - public function run() - { - \DB::table('test_table')->delete(); + /** + * Auto generated seed file + * + * @return void + */ + public function run() + { - \DB::table('test_table')->insert(array ( - 0 => - array ( - 'id' => '1', - 'time' => '2013-10-18 14:28:51', - ), - 1 => - array ( - 'id' => '2', - 'time' => '2013-10-18 14:28:51', - ), - 2 => - array ( - 'id' => '3', - 'time' => '2013-10-18 14:28:51', - ), - 3 => - array ( - 'id' => '4', - 'time' => '2013-10-18 14:28:51', - ), - 4 => - array ( - 'id' => '5', - 'time' => '2013-10-18 14:28:51', - ), - )); - } + \DB::table('test_table')->delete(); + + \DB::table('test_table')->insert(array ( + 0 => + array ( + 'id' => '1', + 'time' => '2013-10-18 14:28:51', + ), + 1 => + array ( + 'id' => '2', + 'time' => '2013-10-18 14:28:51', + ), + 2 => + array ( + 'id' => '3', + 'time' => '2013-10-18 14:28:51', + ), + 3 => + array ( + 'id' => '4', + 'time' => '2013-10-18 14:28:51', + ), + 4 => + array ( + 'id' => '5', + 'time' => '2013-10-18 14:28:51', + ), + )); + + + } } diff --git a/tests/Stubs/seed_505.stub b/tests/Stubs/seed_505.stub index c93b452..ab9ebf7 100644 --- a/tests/Stubs/seed_505.stub +++ b/tests/Stubs/seed_505.stub @@ -2,2546 +2,2550 @@ use Illuminate\Database\Seeder; -class test_class extends Seeder { +class test_class extends Seeder +{ - /** - * Auto generated seed file - * - * @return void - */ - public function run() - { - \DB::table('test_table')->delete(); + /** + * Auto generated seed file + * + * @return void + */ + public function run() + { - \DB::table('test_table')->insert(array ( - 0 => - array ( - 'id' => '1', - 'time' => '2013-10-18 14:31:24', - ), - 1 => - array ( - 'id' => '2', - 'time' => '2013-10-18 14:31:24', - ), - 2 => - array ( - 'id' => '3', - 'time' => '2013-10-18 14:31:24', - ), - 3 => - array ( - 'id' => '4', - 'time' => '2013-10-18 14:31:24', - ), - 4 => - array ( - 'id' => '5', - 'time' => '2013-10-18 14:31:24', - ), - 5 => - array ( - 'id' => '6', - 'time' => '2013-10-18 14:31:24', - ), - 6 => - array ( - 'id' => '7', - 'time' => '2013-10-18 14:31:24', - ), - 7 => - array ( - 'id' => '8', - 'time' => '2013-10-18 14:31:24', - ), - 8 => - array ( - 'id' => '9', - 'time' => '2013-10-18 14:31:24', - ), - 9 => - array ( - 'id' => '10', - 'time' => '2013-10-18 14:31:24', - ), - 10 => - array ( - 'id' => '11', - 'time' => '2013-10-18 14:31:24', - ), - 11 => - array ( - 'id' => '12', - 'time' => '2013-10-18 14:31:24', - ), - 12 => - array ( - 'id' => '13', - 'time' => '2013-10-18 14:31:24', - ), - 13 => - array ( - 'id' => '14', - 'time' => '2013-10-18 14:31:24', - ), - 14 => - array ( - 'id' => '15', - 'time' => '2013-10-18 14:31:24', - ), - 15 => - array ( - 'id' => '16', - 'time' => '2013-10-18 14:31:24', - ), - 16 => - array ( - 'id' => '17', - 'time' => '2013-10-18 14:31:24', - ), - 17 => - array ( - 'id' => '18', - 'time' => '2013-10-18 14:31:24', - ), - 18 => - array ( - 'id' => '19', - 'time' => '2013-10-18 14:31:24', - ), - 19 => - array ( - 'id' => '20', - 'time' => '2013-10-18 14:31:24', - ), - 20 => - array ( - 'id' => '21', - 'time' => '2013-10-18 14:31:24', - ), - 21 => - array ( - 'id' => '22', - 'time' => '2013-10-18 14:31:24', - ), - 22 => - array ( - 'id' => '23', - 'time' => '2013-10-18 14:31:24', - ), - 23 => - array ( - 'id' => '24', - 'time' => '2013-10-18 14:31:24', - ), - 24 => - array ( - 'id' => '25', - 'time' => '2013-10-18 14:31:24', - ), - 25 => - array ( - 'id' => '26', - 'time' => '2013-10-18 14:31:24', - ), - 26 => - array ( - 'id' => '27', - 'time' => '2013-10-18 14:31:24', - ), - 27 => - array ( - 'id' => '28', - 'time' => '2013-10-18 14:31:24', - ), - 28 => - array ( - 'id' => '29', - 'time' => '2013-10-18 14:31:24', - ), - 29 => - array ( - 'id' => '30', - 'time' => '2013-10-18 14:31:24', - ), - 30 => - array ( - 'id' => '31', - 'time' => '2013-10-18 14:31:24', - ), - 31 => - array ( - 'id' => '32', - 'time' => '2013-10-18 14:31:24', - ), - 32 => - array ( - 'id' => '33', - 'time' => '2013-10-18 14:31:24', - ), - 33 => - array ( - 'id' => '34', - 'time' => '2013-10-18 14:31:24', - ), - 34 => - array ( - 'id' => '35', - 'time' => '2013-10-18 14:31:24', - ), - 35 => - array ( - 'id' => '36', - 'time' => '2013-10-18 14:31:24', - ), - 36 => - array ( - 'id' => '37', - 'time' => '2013-10-18 14:31:24', - ), - 37 => - array ( - 'id' => '38', - 'time' => '2013-10-18 14:31:24', - ), - 38 => - array ( - 'id' => '39', - 'time' => '2013-10-18 14:31:24', - ), - 39 => - array ( - 'id' => '40', - 'time' => '2013-10-18 14:31:24', - ), - 40 => - array ( - 'id' => '41', - 'time' => '2013-10-18 14:31:24', - ), - 41 => - array ( - 'id' => '42', - 'time' => '2013-10-18 14:31:24', - ), - 42 => - array ( - 'id' => '43', - 'time' => '2013-10-18 14:31:24', - ), - 43 => - array ( - 'id' => '44', - 'time' => '2013-10-18 14:31:24', - ), - 44 => - array ( - 'id' => '45', - 'time' => '2013-10-18 14:31:24', - ), - 45 => - array ( - 'id' => '46', - 'time' => '2013-10-18 14:31:24', - ), - 46 => - array ( - 'id' => '47', - 'time' => '2013-10-18 14:31:24', - ), - 47 => - array ( - 'id' => '48', - 'time' => '2013-10-18 14:31:24', - ), - 48 => - array ( - 'id' => '49', - 'time' => '2013-10-18 14:31:24', - ), - 49 => - array ( - 'id' => '50', - 'time' => '2013-10-18 14:31:24', - ), - 50 => - array ( - 'id' => '51', - 'time' => '2013-10-18 14:31:24', - ), - 51 => - array ( - 'id' => '52', - 'time' => '2013-10-18 14:31:24', - ), - 52 => - array ( - 'id' => '53', - 'time' => '2013-10-18 14:31:24', - ), - 53 => - array ( - 'id' => '54', - 'time' => '2013-10-18 14:31:24', - ), - 54 => - array ( - 'id' => '55', - 'time' => '2013-10-18 14:31:24', - ), - 55 => - array ( - 'id' => '56', - 'time' => '2013-10-18 14:31:24', - ), - 56 => - array ( - 'id' => '57', - 'time' => '2013-10-18 14:31:24', - ), - 57 => - array ( - 'id' => '58', - 'time' => '2013-10-18 14:31:24', - ), - 58 => - array ( - 'id' => '59', - 'time' => '2013-10-18 14:31:24', - ), - 59 => - array ( - 'id' => '60', - 'time' => '2013-10-18 14:31:24', - ), - 60 => - array ( - 'id' => '61', - 'time' => '2013-10-18 14:31:24', - ), - 61 => - array ( - 'id' => '62', - 'time' => '2013-10-18 14:31:24', - ), - 62 => - array ( - 'id' => '63', - 'time' => '2013-10-18 14:31:24', - ), - 63 => - array ( - 'id' => '64', - 'time' => '2013-10-18 14:31:24', - ), - 64 => - array ( - 'id' => '65', - 'time' => '2013-10-18 14:31:24', - ), - 65 => - array ( - 'id' => '66', - 'time' => '2013-10-18 14:31:24', - ), - 66 => - array ( - 'id' => '67', - 'time' => '2013-10-18 14:31:24', - ), - 67 => - array ( - 'id' => '68', - 'time' => '2013-10-18 14:31:24', - ), - 68 => - array ( - 'id' => '69', - 'time' => '2013-10-18 14:31:24', - ), - 69 => - array ( - 'id' => '70', - 'time' => '2013-10-18 14:31:24', - ), - 70 => - array ( - 'id' => '71', - 'time' => '2013-10-18 14:31:24', - ), - 71 => - array ( - 'id' => '72', - 'time' => '2013-10-18 14:31:24', - ), - 72 => - array ( - 'id' => '73', - 'time' => '2013-10-18 14:31:24', - ), - 73 => - array ( - 'id' => '74', - 'time' => '2013-10-18 14:31:24', - ), - 74 => - array ( - 'id' => '75', - 'time' => '2013-10-18 14:31:24', - ), - 75 => - array ( - 'id' => '76', - 'time' => '2013-10-18 14:31:24', - ), - 76 => - array ( - 'id' => '77', - 'time' => '2013-10-18 14:31:24', - ), - 77 => - array ( - 'id' => '78', - 'time' => '2013-10-18 14:31:24', - ), - 78 => - array ( - 'id' => '79', - 'time' => '2013-10-18 14:31:24', - ), - 79 => - array ( - 'id' => '80', - 'time' => '2013-10-18 14:31:24', - ), - 80 => - array ( - 'id' => '81', - 'time' => '2013-10-18 14:31:24', - ), - 81 => - array ( - 'id' => '82', - 'time' => '2013-10-18 14:31:24', - ), - 82 => - array ( - 'id' => '83', - 'time' => '2013-10-18 14:31:24', - ), - 83 => - array ( - 'id' => '84', - 'time' => '2013-10-18 14:31:24', - ), - 84 => - array ( - 'id' => '85', - 'time' => '2013-10-18 14:31:24', - ), - 85 => - array ( - 'id' => '86', - 'time' => '2013-10-18 14:31:24', - ), - 86 => - array ( - 'id' => '87', - 'time' => '2013-10-18 14:31:24', - ), - 87 => - array ( - 'id' => '88', - 'time' => '2013-10-18 14:31:24', - ), - 88 => - array ( - 'id' => '89', - 'time' => '2013-10-18 14:31:24', - ), - 89 => - array ( - 'id' => '90', - 'time' => '2013-10-18 14:31:24', - ), - 90 => - array ( - 'id' => '91', - 'time' => '2013-10-18 14:31:24', - ), - 91 => - array ( - 'id' => '92', - 'time' => '2013-10-18 14:31:24', - ), - 92 => - array ( - 'id' => '93', - 'time' => '2013-10-18 14:31:24', - ), - 93 => - array ( - 'id' => '94', - 'time' => '2013-10-18 14:31:24', - ), - 94 => - array ( - 'id' => '95', - 'time' => '2013-10-18 14:31:24', - ), - 95 => - array ( - 'id' => '96', - 'time' => '2013-10-18 14:31:24', - ), - 96 => - array ( - 'id' => '97', - 'time' => '2013-10-18 14:31:24', - ), - 97 => - array ( - 'id' => '98', - 'time' => '2013-10-18 14:31:24', - ), - 98 => - array ( - 'id' => '99', - 'time' => '2013-10-18 14:31:24', - ), - 99 => - array ( - 'id' => '100', - 'time' => '2013-10-18 14:31:24', - ), - 100 => - array ( - 'id' => '101', - 'time' => '2013-10-18 14:31:24', - ), - 101 => - array ( - 'id' => '102', - 'time' => '2013-10-18 14:31:24', - ), - 102 => - array ( - 'id' => '103', - 'time' => '2013-10-18 14:31:24', - ), - 103 => - array ( - 'id' => '104', - 'time' => '2013-10-18 14:31:24', - ), - 104 => - array ( - 'id' => '105', - 'time' => '2013-10-18 14:31:24', - ), - 105 => - array ( - 'id' => '106', - 'time' => '2013-10-18 14:31:24', - ), - 106 => - array ( - 'id' => '107', - 'time' => '2013-10-18 14:31:24', - ), - 107 => - array ( - 'id' => '108', - 'time' => '2013-10-18 14:31:24', - ), - 108 => - array ( - 'id' => '109', - 'time' => '2013-10-18 14:31:24', - ), - 109 => - array ( - 'id' => '110', - 'time' => '2013-10-18 14:31:24', - ), - 110 => - array ( - 'id' => '111', - 'time' => '2013-10-18 14:31:24', - ), - 111 => - array ( - 'id' => '112', - 'time' => '2013-10-18 14:31:24', - ), - 112 => - array ( - 'id' => '113', - 'time' => '2013-10-18 14:31:24', - ), - 113 => - array ( - 'id' => '114', - 'time' => '2013-10-18 14:31:24', - ), - 114 => - array ( - 'id' => '115', - 'time' => '2013-10-18 14:31:24', - ), - 115 => - array ( - 'id' => '116', - 'time' => '2013-10-18 14:31:24', - ), - 116 => - array ( - 'id' => '117', - 'time' => '2013-10-18 14:31:24', - ), - 117 => - array ( - 'id' => '118', - 'time' => '2013-10-18 14:31:24', - ), - 118 => - array ( - 'id' => '119', - 'time' => '2013-10-18 14:31:24', - ), - 119 => - array ( - 'id' => '120', - 'time' => '2013-10-18 14:31:24', - ), - 120 => - array ( - 'id' => '121', - 'time' => '2013-10-18 14:31:24', - ), - 121 => - array ( - 'id' => '122', - 'time' => '2013-10-18 14:31:24', - ), - 122 => - array ( - 'id' => '123', - 'time' => '2013-10-18 14:31:24', - ), - 123 => - array ( - 'id' => '124', - 'time' => '2013-10-18 14:31:24', - ), - 124 => - array ( - 'id' => '125', - 'time' => '2013-10-18 14:31:24', - ), - 125 => - array ( - 'id' => '126', - 'time' => '2013-10-18 14:31:24', - ), - 126 => - array ( - 'id' => '127', - 'time' => '2013-10-18 14:31:24', - ), - 127 => - array ( - 'id' => '128', - 'time' => '2013-10-18 14:31:24', - ), - 128 => - array ( - 'id' => '129', - 'time' => '2013-10-18 14:31:24', - ), - 129 => - array ( - 'id' => '130', - 'time' => '2013-10-18 14:31:24', - ), - 130 => - array ( - 'id' => '131', - 'time' => '2013-10-18 14:31:24', - ), - 131 => - array ( - 'id' => '132', - 'time' => '2013-10-18 14:31:24', - ), - 132 => - array ( - 'id' => '133', - 'time' => '2013-10-18 14:31:24', - ), - 133 => - array ( - 'id' => '134', - 'time' => '2013-10-18 14:31:24', - ), - 134 => - array ( - 'id' => '135', - 'time' => '2013-10-18 14:31:24', - ), - 135 => - array ( - 'id' => '136', - 'time' => '2013-10-18 14:31:24', - ), - 136 => - array ( - 'id' => '137', - 'time' => '2013-10-18 14:31:24', - ), - 137 => - array ( - 'id' => '138', - 'time' => '2013-10-18 14:31:24', - ), - 138 => - array ( - 'id' => '139', - 'time' => '2013-10-18 14:31:24', - ), - 139 => - array ( - 'id' => '140', - 'time' => '2013-10-18 14:31:24', - ), - 140 => - array ( - 'id' => '141', - 'time' => '2013-10-18 14:31:24', - ), - 141 => - array ( - 'id' => '142', - 'time' => '2013-10-18 14:31:24', - ), - 142 => - array ( - 'id' => '143', - 'time' => '2013-10-18 14:31:24', - ), - 143 => - array ( - 'id' => '144', - 'time' => '2013-10-18 14:31:24', - ), - 144 => - array ( - 'id' => '145', - 'time' => '2013-10-18 14:31:24', - ), - 145 => - array ( - 'id' => '146', - 'time' => '2013-10-18 14:31:24', - ), - 146 => - array ( - 'id' => '147', - 'time' => '2013-10-18 14:31:24', - ), - 147 => - array ( - 'id' => '148', - 'time' => '2013-10-18 14:31:24', - ), - 148 => - array ( - 'id' => '149', - 'time' => '2013-10-18 14:31:24', - ), - 149 => - array ( - 'id' => '150', - 'time' => '2013-10-18 14:31:24', - ), - 150 => - array ( - 'id' => '151', - 'time' => '2013-10-18 14:31:24', - ), - 151 => - array ( - 'id' => '152', - 'time' => '2013-10-18 14:31:24', - ), - 152 => - array ( - 'id' => '153', - 'time' => '2013-10-18 14:31:24', - ), - 153 => - array ( - 'id' => '154', - 'time' => '2013-10-18 14:31:24', - ), - 154 => - array ( - 'id' => '155', - 'time' => '2013-10-18 14:31:24', - ), - 155 => - array ( - 'id' => '156', - 'time' => '2013-10-18 14:31:24', - ), - 156 => - array ( - 'id' => '157', - 'time' => '2013-10-18 14:31:24', - ), - 157 => - array ( - 'id' => '158', - 'time' => '2013-10-18 14:31:24', - ), - 158 => - array ( - 'id' => '159', - 'time' => '2013-10-18 14:31:24', - ), - 159 => - array ( - 'id' => '160', - 'time' => '2013-10-18 14:31:24', - ), - 160 => - array ( - 'id' => '161', - 'time' => '2013-10-18 14:31:24', - ), - 161 => - array ( - 'id' => '162', - 'time' => '2013-10-18 14:31:24', - ), - 162 => - array ( - 'id' => '163', - 'time' => '2013-10-18 14:31:24', - ), - 163 => - array ( - 'id' => '164', - 'time' => '2013-10-18 14:31:24', - ), - 164 => - array ( - 'id' => '165', - 'time' => '2013-10-18 14:31:24', - ), - 165 => - array ( - 'id' => '166', - 'time' => '2013-10-18 14:31:24', - ), - 166 => - array ( - 'id' => '167', - 'time' => '2013-10-18 14:31:24', - ), - 167 => - array ( - 'id' => '168', - 'time' => '2013-10-18 14:31:24', - ), - 168 => - array ( - 'id' => '169', - 'time' => '2013-10-18 14:31:24', - ), - 169 => - array ( - 'id' => '170', - 'time' => '2013-10-18 14:31:24', - ), - 170 => - array ( - 'id' => '171', - 'time' => '2013-10-18 14:31:24', - ), - 171 => - array ( - 'id' => '172', - 'time' => '2013-10-18 14:31:24', - ), - 172 => - array ( - 'id' => '173', - 'time' => '2013-10-18 14:31:24', - ), - 173 => - array ( - 'id' => '174', - 'time' => '2013-10-18 14:31:24', - ), - 174 => - array ( - 'id' => '175', - 'time' => '2013-10-18 14:31:24', - ), - 175 => - array ( - 'id' => '176', - 'time' => '2013-10-18 14:31:24', - ), - 176 => - array ( - 'id' => '177', - 'time' => '2013-10-18 14:31:24', - ), - 177 => - array ( - 'id' => '178', - 'time' => '2013-10-18 14:31:24', - ), - 178 => - array ( - 'id' => '179', - 'time' => '2013-10-18 14:31:24', - ), - 179 => - array ( - 'id' => '180', - 'time' => '2013-10-18 14:31:24', - ), - 180 => - array ( - 'id' => '181', - 'time' => '2013-10-18 14:31:24', - ), - 181 => - array ( - 'id' => '182', - 'time' => '2013-10-18 14:31:24', - ), - 182 => - array ( - 'id' => '183', - 'time' => '2013-10-18 14:31:24', - ), - 183 => - array ( - 'id' => '184', - 'time' => '2013-10-18 14:31:24', - ), - 184 => - array ( - 'id' => '185', - 'time' => '2013-10-18 14:31:24', - ), - 185 => - array ( - 'id' => '186', - 'time' => '2013-10-18 14:31:24', - ), - 186 => - array ( - 'id' => '187', - 'time' => '2013-10-18 14:31:24', - ), - 187 => - array ( - 'id' => '188', - 'time' => '2013-10-18 14:31:24', - ), - 188 => - array ( - 'id' => '189', - 'time' => '2013-10-18 14:31:24', - ), - 189 => - array ( - 'id' => '190', - 'time' => '2013-10-18 14:31:24', - ), - 190 => - array ( - 'id' => '191', - 'time' => '2013-10-18 14:31:24', - ), - 191 => - array ( - 'id' => '192', - 'time' => '2013-10-18 14:31:24', - ), - 192 => - array ( - 'id' => '193', - 'time' => '2013-10-18 14:31:24', - ), - 193 => - array ( - 'id' => '194', - 'time' => '2013-10-18 14:31:24', - ), - 194 => - array ( - 'id' => '195', - 'time' => '2013-10-18 14:31:24', - ), - 195 => - array ( - 'id' => '196', - 'time' => '2013-10-18 14:31:24', - ), - 196 => - array ( - 'id' => '197', - 'time' => '2013-10-18 14:31:24', - ), - 197 => - array ( - 'id' => '198', - 'time' => '2013-10-18 14:31:24', - ), - 198 => - array ( - 'id' => '199', - 'time' => '2013-10-18 14:31:24', - ), - 199 => - array ( - 'id' => '200', - 'time' => '2013-10-18 14:31:24', - ), - 200 => - array ( - 'id' => '201', - 'time' => '2013-10-18 14:31:24', - ), - 201 => - array ( - 'id' => '202', - 'time' => '2013-10-18 14:31:24', - ), - 202 => - array ( - 'id' => '203', - 'time' => '2013-10-18 14:31:24', - ), - 203 => - array ( - 'id' => '204', - 'time' => '2013-10-18 14:31:24', - ), - 204 => - array ( - 'id' => '205', - 'time' => '2013-10-18 14:31:24', - ), - 205 => - array ( - 'id' => '206', - 'time' => '2013-10-18 14:31:24', - ), - 206 => - array ( - 'id' => '207', - 'time' => '2013-10-18 14:31:24', - ), - 207 => - array ( - 'id' => '208', - 'time' => '2013-10-18 14:31:24', - ), - 208 => - array ( - 'id' => '209', - 'time' => '2013-10-18 14:31:24', - ), - 209 => - array ( - 'id' => '210', - 'time' => '2013-10-18 14:31:24', - ), - 210 => - array ( - 'id' => '211', - 'time' => '2013-10-18 14:31:24', - ), - 211 => - array ( - 'id' => '212', - 'time' => '2013-10-18 14:31:24', - ), - 212 => - array ( - 'id' => '213', - 'time' => '2013-10-18 14:31:24', - ), - 213 => - array ( - 'id' => '214', - 'time' => '2013-10-18 14:31:24', - ), - 214 => - array ( - 'id' => '215', - 'time' => '2013-10-18 14:31:24', - ), - 215 => - array ( - 'id' => '216', - 'time' => '2013-10-18 14:31:24', - ), - 216 => - array ( - 'id' => '217', - 'time' => '2013-10-18 14:31:24', - ), - 217 => - array ( - 'id' => '218', - 'time' => '2013-10-18 14:31:24', - ), - 218 => - array ( - 'id' => '219', - 'time' => '2013-10-18 14:31:24', - ), - 219 => - array ( - 'id' => '220', - 'time' => '2013-10-18 14:31:24', - ), - 220 => - array ( - 'id' => '221', - 'time' => '2013-10-18 14:31:24', - ), - 221 => - array ( - 'id' => '222', - 'time' => '2013-10-18 14:31:24', - ), - 222 => - array ( - 'id' => '223', - 'time' => '2013-10-18 14:31:24', - ), - 223 => - array ( - 'id' => '224', - 'time' => '2013-10-18 14:31:24', - ), - 224 => - array ( - 'id' => '225', - 'time' => '2013-10-18 14:31:24', - ), - 225 => - array ( - 'id' => '226', - 'time' => '2013-10-18 14:31:24', - ), - 226 => - array ( - 'id' => '227', - 'time' => '2013-10-18 14:31:24', - ), - 227 => - array ( - 'id' => '228', - 'time' => '2013-10-18 14:31:24', - ), - 228 => - array ( - 'id' => '229', - 'time' => '2013-10-18 14:31:24', - ), - 229 => - array ( - 'id' => '230', - 'time' => '2013-10-18 14:31:24', - ), - 230 => - array ( - 'id' => '231', - 'time' => '2013-10-18 14:31:24', - ), - 231 => - array ( - 'id' => '232', - 'time' => '2013-10-18 14:31:24', - ), - 232 => - array ( - 'id' => '233', - 'time' => '2013-10-18 14:31:24', - ), - 233 => - array ( - 'id' => '234', - 'time' => '2013-10-18 14:31:24', - ), - 234 => - array ( - 'id' => '235', - 'time' => '2013-10-18 14:31:24', - ), - 235 => - array ( - 'id' => '236', - 'time' => '2013-10-18 14:31:24', - ), - 236 => - array ( - 'id' => '237', - 'time' => '2013-10-18 14:31:24', - ), - 237 => - array ( - 'id' => '238', - 'time' => '2013-10-18 14:31:24', - ), - 238 => - array ( - 'id' => '239', - 'time' => '2013-10-18 14:31:24', - ), - 239 => - array ( - 'id' => '240', - 'time' => '2013-10-18 14:31:24', - ), - 240 => - array ( - 'id' => '241', - 'time' => '2013-10-18 14:31:24', - ), - 241 => - array ( - 'id' => '242', - 'time' => '2013-10-18 14:31:24', - ), - 242 => - array ( - 'id' => '243', - 'time' => '2013-10-18 14:31:24', - ), - 243 => - array ( - 'id' => '244', - 'time' => '2013-10-18 14:31:24', - ), - 244 => - array ( - 'id' => '245', - 'time' => '2013-10-18 14:31:24', - ), - 245 => - array ( - 'id' => '246', - 'time' => '2013-10-18 14:31:24', - ), - 246 => - array ( - 'id' => '247', - 'time' => '2013-10-18 14:31:24', - ), - 247 => - array ( - 'id' => '248', - 'time' => '2013-10-18 14:31:24', - ), - 248 => - array ( - 'id' => '249', - 'time' => '2013-10-18 14:31:24', - ), - 249 => - array ( - 'id' => '250', - 'time' => '2013-10-18 14:31:24', - ), - 250 => - array ( - 'id' => '251', - 'time' => '2013-10-18 14:31:24', - ), - 251 => - array ( - 'id' => '252', - 'time' => '2013-10-18 14:31:24', - ), - 252 => - array ( - 'id' => '253', - 'time' => '2013-10-18 14:31:24', - ), - 253 => - array ( - 'id' => '254', - 'time' => '2013-10-18 14:31:24', - ), - 254 => - array ( - 'id' => '255', - 'time' => '2013-10-18 14:31:24', - ), - 255 => - array ( - 'id' => '256', - 'time' => '2013-10-18 14:31:24', - ), - 256 => - array ( - 'id' => '257', - 'time' => '2013-10-18 14:31:24', - ), - 257 => - array ( - 'id' => '258', - 'time' => '2013-10-18 14:31:24', - ), - 258 => - array ( - 'id' => '259', - 'time' => '2013-10-18 14:31:24', - ), - 259 => - array ( - 'id' => '260', - 'time' => '2013-10-18 14:31:24', - ), - 260 => - array ( - 'id' => '261', - 'time' => '2013-10-18 14:31:24', - ), - 261 => - array ( - 'id' => '262', - 'time' => '2013-10-18 14:31:24', - ), - 262 => - array ( - 'id' => '263', - 'time' => '2013-10-18 14:31:24', - ), - 263 => - array ( - 'id' => '264', - 'time' => '2013-10-18 14:31:24', - ), - 264 => - array ( - 'id' => '265', - 'time' => '2013-10-18 14:31:24', - ), - 265 => - array ( - 'id' => '266', - 'time' => '2013-10-18 14:31:24', - ), - 266 => - array ( - 'id' => '267', - 'time' => '2013-10-18 14:31:24', - ), - 267 => - array ( - 'id' => '268', - 'time' => '2013-10-18 14:31:24', - ), - 268 => - array ( - 'id' => '269', - 'time' => '2013-10-18 14:31:24', - ), - 269 => - array ( - 'id' => '270', - 'time' => '2013-10-18 14:31:24', - ), - 270 => - array ( - 'id' => '271', - 'time' => '2013-10-18 14:31:24', - ), - 271 => - array ( - 'id' => '272', - 'time' => '2013-10-18 14:31:24', - ), - 272 => - array ( - 'id' => '273', - 'time' => '2013-10-18 14:31:24', - ), - 273 => - array ( - 'id' => '274', - 'time' => '2013-10-18 14:31:24', - ), - 274 => - array ( - 'id' => '275', - 'time' => '2013-10-18 14:31:24', - ), - 275 => - array ( - 'id' => '276', - 'time' => '2013-10-18 14:31:24', - ), - 276 => - array ( - 'id' => '277', - 'time' => '2013-10-18 14:31:24', - ), - 277 => - array ( - 'id' => '278', - 'time' => '2013-10-18 14:31:24', - ), - 278 => - array ( - 'id' => '279', - 'time' => '2013-10-18 14:31:24', - ), - 279 => - array ( - 'id' => '280', - 'time' => '2013-10-18 14:31:24', - ), - 280 => - array ( - 'id' => '281', - 'time' => '2013-10-18 14:31:24', - ), - 281 => - array ( - 'id' => '282', - 'time' => '2013-10-18 14:31:24', - ), - 282 => - array ( - 'id' => '283', - 'time' => '2013-10-18 14:31:24', - ), - 283 => - array ( - 'id' => '284', - 'time' => '2013-10-18 14:31:24', - ), - 284 => - array ( - 'id' => '285', - 'time' => '2013-10-18 14:31:24', - ), - 285 => - array ( - 'id' => '286', - 'time' => '2013-10-18 14:31:24', - ), - 286 => - array ( - 'id' => '287', - 'time' => '2013-10-18 14:31:24', - ), - 287 => - array ( - 'id' => '288', - 'time' => '2013-10-18 14:31:24', - ), - 288 => - array ( - 'id' => '289', - 'time' => '2013-10-18 14:31:24', - ), - 289 => - array ( - 'id' => '290', - 'time' => '2013-10-18 14:31:24', - ), - 290 => - array ( - 'id' => '291', - 'time' => '2013-10-18 14:31:24', - ), - 291 => - array ( - 'id' => '292', - 'time' => '2013-10-18 14:31:24', - ), - 292 => - array ( - 'id' => '293', - 'time' => '2013-10-18 14:31:24', - ), - 293 => - array ( - 'id' => '294', - 'time' => '2013-10-18 14:31:24', - ), - 294 => - array ( - 'id' => '295', - 'time' => '2013-10-18 14:31:24', - ), - 295 => - array ( - 'id' => '296', - 'time' => '2013-10-18 14:31:24', - ), - 296 => - array ( - 'id' => '297', - 'time' => '2013-10-18 14:31:24', - ), - 297 => - array ( - 'id' => '298', - 'time' => '2013-10-18 14:31:24', - ), - 298 => - array ( - 'id' => '299', - 'time' => '2013-10-18 14:31:24', - ), - 299 => - array ( - 'id' => '300', - 'time' => '2013-10-18 14:31:24', - ), - 300 => - array ( - 'id' => '301', - 'time' => '2013-10-18 14:31:24', - ), - 301 => - array ( - 'id' => '302', - 'time' => '2013-10-18 14:31:24', - ), - 302 => - array ( - 'id' => '303', - 'time' => '2013-10-18 14:31:24', - ), - 303 => - array ( - 'id' => '304', - 'time' => '2013-10-18 14:31:24', - ), - 304 => - array ( - 'id' => '305', - 'time' => '2013-10-18 14:31:24', - ), - 305 => - array ( - 'id' => '306', - 'time' => '2013-10-18 14:31:24', - ), - 306 => - array ( - 'id' => '307', - 'time' => '2013-10-18 14:31:24', - ), - 307 => - array ( - 'id' => '308', - 'time' => '2013-10-18 14:31:24', - ), - 308 => - array ( - 'id' => '309', - 'time' => '2013-10-18 14:31:24', - ), - 309 => - array ( - 'id' => '310', - 'time' => '2013-10-18 14:31:24', - ), - 310 => - array ( - 'id' => '311', - 'time' => '2013-10-18 14:31:24', - ), - 311 => - array ( - 'id' => '312', - 'time' => '2013-10-18 14:31:24', - ), - 312 => - array ( - 'id' => '313', - 'time' => '2013-10-18 14:31:24', - ), - 313 => - array ( - 'id' => '314', - 'time' => '2013-10-18 14:31:24', - ), - 314 => - array ( - 'id' => '315', - 'time' => '2013-10-18 14:31:24', - ), - 315 => - array ( - 'id' => '316', - 'time' => '2013-10-18 14:31:24', - ), - 316 => - array ( - 'id' => '317', - 'time' => '2013-10-18 14:31:24', - ), - 317 => - array ( - 'id' => '318', - 'time' => '2013-10-18 14:31:24', - ), - 318 => - array ( - 'id' => '319', - 'time' => '2013-10-18 14:31:24', - ), - 319 => - array ( - 'id' => '320', - 'time' => '2013-10-18 14:31:24', - ), - 320 => - array ( - 'id' => '321', - 'time' => '2013-10-18 14:31:24', - ), - 321 => - array ( - 'id' => '322', - 'time' => '2013-10-18 14:31:24', - ), - 322 => - array ( - 'id' => '323', - 'time' => '2013-10-18 14:31:24', - ), - 323 => - array ( - 'id' => '324', - 'time' => '2013-10-18 14:31:24', - ), - 324 => - array ( - 'id' => '325', - 'time' => '2013-10-18 14:31:24', - ), - 325 => - array ( - 'id' => '326', - 'time' => '2013-10-18 14:31:24', - ), - 326 => - array ( - 'id' => '327', - 'time' => '2013-10-18 14:31:24', - ), - 327 => - array ( - 'id' => '328', - 'time' => '2013-10-18 14:31:24', - ), - 328 => - array ( - 'id' => '329', - 'time' => '2013-10-18 14:31:24', - ), - 329 => - array ( - 'id' => '330', - 'time' => '2013-10-18 14:31:24', - ), - 330 => - array ( - 'id' => '331', - 'time' => '2013-10-18 14:31:24', - ), - 331 => - array ( - 'id' => '332', - 'time' => '2013-10-18 14:31:24', - ), - 332 => - array ( - 'id' => '333', - 'time' => '2013-10-18 14:31:24', - ), - 333 => - array ( - 'id' => '334', - 'time' => '2013-10-18 14:31:24', - ), - 334 => - array ( - 'id' => '335', - 'time' => '2013-10-18 14:31:24', - ), - 335 => - array ( - 'id' => '336', - 'time' => '2013-10-18 14:31:24', - ), - 336 => - array ( - 'id' => '337', - 'time' => '2013-10-18 14:31:24', - ), - 337 => - array ( - 'id' => '338', - 'time' => '2013-10-18 14:31:24', - ), - 338 => - array ( - 'id' => '339', - 'time' => '2013-10-18 14:31:24', - ), - 339 => - array ( - 'id' => '340', - 'time' => '2013-10-18 14:31:24', - ), - 340 => - array ( - 'id' => '341', - 'time' => '2013-10-18 14:31:24', - ), - 341 => - array ( - 'id' => '342', - 'time' => '2013-10-18 14:31:24', - ), - 342 => - array ( - 'id' => '343', - 'time' => '2013-10-18 14:31:24', - ), - 343 => - array ( - 'id' => '344', - 'time' => '2013-10-18 14:31:24', - ), - 344 => - array ( - 'id' => '345', - 'time' => '2013-10-18 14:31:24', - ), - 345 => - array ( - 'id' => '346', - 'time' => '2013-10-18 14:31:24', - ), - 346 => - array ( - 'id' => '347', - 'time' => '2013-10-18 14:31:24', - ), - 347 => - array ( - 'id' => '348', - 'time' => '2013-10-18 14:31:24', - ), - 348 => - array ( - 'id' => '349', - 'time' => '2013-10-18 14:31:24', - ), - 349 => - array ( - 'id' => '350', - 'time' => '2013-10-18 14:31:24', - ), - 350 => - array ( - 'id' => '351', - 'time' => '2013-10-18 14:31:24', - ), - 351 => - array ( - 'id' => '352', - 'time' => '2013-10-18 14:31:24', - ), - 352 => - array ( - 'id' => '353', - 'time' => '2013-10-18 14:31:24', - ), - 353 => - array ( - 'id' => '354', - 'time' => '2013-10-18 14:31:24', - ), - 354 => - array ( - 'id' => '355', - 'time' => '2013-10-18 14:31:24', - ), - 355 => - array ( - 'id' => '356', - 'time' => '2013-10-18 14:31:24', - ), - 356 => - array ( - 'id' => '357', - 'time' => '2013-10-18 14:31:24', - ), - 357 => - array ( - 'id' => '358', - 'time' => '2013-10-18 14:31:24', - ), - 358 => - array ( - 'id' => '359', - 'time' => '2013-10-18 14:31:24', - ), - 359 => - array ( - 'id' => '360', - 'time' => '2013-10-18 14:31:24', - ), - 360 => - array ( - 'id' => '361', - 'time' => '2013-10-18 14:31:24', - ), - 361 => - array ( - 'id' => '362', - 'time' => '2013-10-18 14:31:24', - ), - 362 => - array ( - 'id' => '363', - 'time' => '2013-10-18 14:31:24', - ), - 363 => - array ( - 'id' => '364', - 'time' => '2013-10-18 14:31:24', - ), - 364 => - array ( - 'id' => '365', - 'time' => '2013-10-18 14:31:24', - ), - 365 => - array ( - 'id' => '366', - 'time' => '2013-10-18 14:31:24', - ), - 366 => - array ( - 'id' => '367', - 'time' => '2013-10-18 14:31:24', - ), - 367 => - array ( - 'id' => '368', - 'time' => '2013-10-18 14:31:24', - ), - 368 => - array ( - 'id' => '369', - 'time' => '2013-10-18 14:31:24', - ), - 369 => - array ( - 'id' => '370', - 'time' => '2013-10-18 14:31:24', - ), - 370 => - array ( - 'id' => '371', - 'time' => '2013-10-18 14:31:24', - ), - 371 => - array ( - 'id' => '372', - 'time' => '2013-10-18 14:31:24', - ), - 372 => - array ( - 'id' => '373', - 'time' => '2013-10-18 14:31:24', - ), - 373 => - array ( - 'id' => '374', - 'time' => '2013-10-18 14:31:24', - ), - 374 => - array ( - 'id' => '375', - 'time' => '2013-10-18 14:31:24', - ), - 375 => - array ( - 'id' => '376', - 'time' => '2013-10-18 14:31:24', - ), - 376 => - array ( - 'id' => '377', - 'time' => '2013-10-18 14:31:24', - ), - 377 => - array ( - 'id' => '378', - 'time' => '2013-10-18 14:31:24', - ), - 378 => - array ( - 'id' => '379', - 'time' => '2013-10-18 14:31:24', - ), - 379 => - array ( - 'id' => '380', - 'time' => '2013-10-18 14:31:24', - ), - 380 => - array ( - 'id' => '381', - 'time' => '2013-10-18 14:31:24', - ), - 381 => - array ( - 'id' => '382', - 'time' => '2013-10-18 14:31:24', - ), - 382 => - array ( - 'id' => '383', - 'time' => '2013-10-18 14:31:24', - ), - 383 => - array ( - 'id' => '384', - 'time' => '2013-10-18 14:31:24', - ), - 384 => - array ( - 'id' => '385', - 'time' => '2013-10-18 14:31:24', - ), - 385 => - array ( - 'id' => '386', - 'time' => '2013-10-18 14:31:24', - ), - 386 => - array ( - 'id' => '387', - 'time' => '2013-10-18 14:31:24', - ), - 387 => - array ( - 'id' => '388', - 'time' => '2013-10-18 14:31:24', - ), - 388 => - array ( - 'id' => '389', - 'time' => '2013-10-18 14:31:24', - ), - 389 => - array ( - 'id' => '390', - 'time' => '2013-10-18 14:31:24', - ), - 390 => - array ( - 'id' => '391', - 'time' => '2013-10-18 14:31:24', - ), - 391 => - array ( - 'id' => '392', - 'time' => '2013-10-18 14:31:24', - ), - 392 => - array ( - 'id' => '393', - 'time' => '2013-10-18 14:31:24', - ), - 393 => - array ( - 'id' => '394', - 'time' => '2013-10-18 14:31:24', - ), - 394 => - array ( - 'id' => '395', - 'time' => '2013-10-18 14:31:24', - ), - 395 => - array ( - 'id' => '396', - 'time' => '2013-10-18 14:31:24', - ), - 396 => - array ( - 'id' => '397', - 'time' => '2013-10-18 14:31:24', - ), - 397 => - array ( - 'id' => '398', - 'time' => '2013-10-18 14:31:24', - ), - 398 => - array ( - 'id' => '399', - 'time' => '2013-10-18 14:31:24', - ), - 399 => - array ( - 'id' => '400', - 'time' => '2013-10-18 14:31:24', - ), - 400 => - array ( - 'id' => '401', - 'time' => '2013-10-18 14:31:24', - ), - 401 => - array ( - 'id' => '402', - 'time' => '2013-10-18 14:31:24', - ), - 402 => - array ( - 'id' => '403', - 'time' => '2013-10-18 14:31:24', - ), - 403 => - array ( - 'id' => '404', - 'time' => '2013-10-18 14:31:24', - ), - 404 => - array ( - 'id' => '405', - 'time' => '2013-10-18 14:31:24', - ), - 405 => - array ( - 'id' => '406', - 'time' => '2013-10-18 14:31:24', - ), - 406 => - array ( - 'id' => '407', - 'time' => '2013-10-18 14:31:24', - ), - 407 => - array ( - 'id' => '408', - 'time' => '2013-10-18 14:31:24', - ), - 408 => - array ( - 'id' => '409', - 'time' => '2013-10-18 14:31:24', - ), - 409 => - array ( - 'id' => '410', - 'time' => '2013-10-18 14:31:24', - ), - 410 => - array ( - 'id' => '411', - 'time' => '2013-10-18 14:31:24', - ), - 411 => - array ( - 'id' => '412', - 'time' => '2013-10-18 14:31:24', - ), - 412 => - array ( - 'id' => '413', - 'time' => '2013-10-18 14:31:24', - ), - 413 => - array ( - 'id' => '414', - 'time' => '2013-10-18 14:31:24', - ), - 414 => - array ( - 'id' => '415', - 'time' => '2013-10-18 14:31:24', - ), - 415 => - array ( - 'id' => '416', - 'time' => '2013-10-18 14:31:24', - ), - 416 => - array ( - 'id' => '417', - 'time' => '2013-10-18 14:31:24', - ), - 417 => - array ( - 'id' => '418', - 'time' => '2013-10-18 14:31:24', - ), - 418 => - array ( - 'id' => '419', - 'time' => '2013-10-18 14:31:24', - ), - 419 => - array ( - 'id' => '420', - 'time' => '2013-10-18 14:31:24', - ), - 420 => - array ( - 'id' => '421', - 'time' => '2013-10-18 14:31:24', - ), - 421 => - array ( - 'id' => '422', - 'time' => '2013-10-18 14:31:24', - ), - 422 => - array ( - 'id' => '423', - 'time' => '2013-10-18 14:31:24', - ), - 423 => - array ( - 'id' => '424', - 'time' => '2013-10-18 14:31:24', - ), - 424 => - array ( - 'id' => '425', - 'time' => '2013-10-18 14:31:24', - ), - 425 => - array ( - 'id' => '426', - 'time' => '2013-10-18 14:31:24', - ), - 426 => - array ( - 'id' => '427', - 'time' => '2013-10-18 14:31:24', - ), - 427 => - array ( - 'id' => '428', - 'time' => '2013-10-18 14:31:24', - ), - 428 => - array ( - 'id' => '429', - 'time' => '2013-10-18 14:31:24', - ), - 429 => - array ( - 'id' => '430', - 'time' => '2013-10-18 14:31:24', - ), - 430 => - array ( - 'id' => '431', - 'time' => '2013-10-18 14:31:24', - ), - 431 => - array ( - 'id' => '432', - 'time' => '2013-10-18 14:31:24', - ), - 432 => - array ( - 'id' => '433', - 'time' => '2013-10-18 14:31:24', - ), - 433 => - array ( - 'id' => '434', - 'time' => '2013-10-18 14:31:24', - ), - 434 => - array ( - 'id' => '435', - 'time' => '2013-10-18 14:31:24', - ), - 435 => - array ( - 'id' => '436', - 'time' => '2013-10-18 14:31:24', - ), - 436 => - array ( - 'id' => '437', - 'time' => '2013-10-18 14:31:24', - ), - 437 => - array ( - 'id' => '438', - 'time' => '2013-10-18 14:31:24', - ), - 438 => - array ( - 'id' => '439', - 'time' => '2013-10-18 14:31:24', - ), - 439 => - array ( - 'id' => '440', - 'time' => '2013-10-18 14:31:24', - ), - 440 => - array ( - 'id' => '441', - 'time' => '2013-10-18 14:31:24', - ), - 441 => - array ( - 'id' => '442', - 'time' => '2013-10-18 14:31:24', - ), - 442 => - array ( - 'id' => '443', - 'time' => '2013-10-18 14:31:24', - ), - 443 => - array ( - 'id' => '444', - 'time' => '2013-10-18 14:31:24', - ), - 444 => - array ( - 'id' => '445', - 'time' => '2013-10-18 14:31:24', - ), - 445 => - array ( - 'id' => '446', - 'time' => '2013-10-18 14:31:24', - ), - 446 => - array ( - 'id' => '447', - 'time' => '2013-10-18 14:31:24', - ), - 447 => - array ( - 'id' => '448', - 'time' => '2013-10-18 14:31:24', - ), - 448 => - array ( - 'id' => '449', - 'time' => '2013-10-18 14:31:24', - ), - 449 => - array ( - 'id' => '450', - 'time' => '2013-10-18 14:31:24', - ), - 450 => - array ( - 'id' => '451', - 'time' => '2013-10-18 14:31:24', - ), - 451 => - array ( - 'id' => '452', - 'time' => '2013-10-18 14:31:24', - ), - 452 => - array ( - 'id' => '453', - 'time' => '2013-10-18 14:31:24', - ), - 453 => - array ( - 'id' => '454', - 'time' => '2013-10-18 14:31:24', - ), - 454 => - array ( - 'id' => '455', - 'time' => '2013-10-18 14:31:24', - ), - 455 => - array ( - 'id' => '456', - 'time' => '2013-10-18 14:31:24', - ), - 456 => - array ( - 'id' => '457', - 'time' => '2013-10-18 14:31:24', - ), - 457 => - array ( - 'id' => '458', - 'time' => '2013-10-18 14:31:24', - ), - 458 => - array ( - 'id' => '459', - 'time' => '2013-10-18 14:31:24', - ), - 459 => - array ( - 'id' => '460', - 'time' => '2013-10-18 14:31:24', - ), - 460 => - array ( - 'id' => '461', - 'time' => '2013-10-18 14:31:24', - ), - 461 => - array ( - 'id' => '462', - 'time' => '2013-10-18 14:31:24', - ), - 462 => - array ( - 'id' => '463', - 'time' => '2013-10-18 14:31:24', - ), - 463 => - array ( - 'id' => '464', - 'time' => '2013-10-18 14:31:24', - ), - 464 => - array ( - 'id' => '465', - 'time' => '2013-10-18 14:31:24', - ), - 465 => - array ( - 'id' => '466', - 'time' => '2013-10-18 14:31:24', - ), - 466 => - array ( - 'id' => '467', - 'time' => '2013-10-18 14:31:24', - ), - 467 => - array ( - 'id' => '468', - 'time' => '2013-10-18 14:31:24', - ), - 468 => - array ( - 'id' => '469', - 'time' => '2013-10-18 14:31:24', - ), - 469 => - array ( - 'id' => '470', - 'time' => '2013-10-18 14:31:24', - ), - 470 => - array ( - 'id' => '471', - 'time' => '2013-10-18 14:31:24', - ), - 471 => - array ( - 'id' => '472', - 'time' => '2013-10-18 14:31:24', - ), - 472 => - array ( - 'id' => '473', - 'time' => '2013-10-18 14:31:24', - ), - 473 => - array ( - 'id' => '474', - 'time' => '2013-10-18 14:31:24', - ), - 474 => - array ( - 'id' => '475', - 'time' => '2013-10-18 14:31:24', - ), - 475 => - array ( - 'id' => '476', - 'time' => '2013-10-18 14:31:24', - ), - 476 => - array ( - 'id' => '477', - 'time' => '2013-10-18 14:31:24', - ), - 477 => - array ( - 'id' => '478', - 'time' => '2013-10-18 14:31:24', - ), - 478 => - array ( - 'id' => '479', - 'time' => '2013-10-18 14:31:24', - ), - 479 => - array ( - 'id' => '480', - 'time' => '2013-10-18 14:31:24', - ), - 480 => - array ( - 'id' => '481', - 'time' => '2013-10-18 14:31:24', - ), - 481 => - array ( - 'id' => '482', - 'time' => '2013-10-18 14:31:24', - ), - 482 => - array ( - 'id' => '483', - 'time' => '2013-10-18 14:31:24', - ), - 483 => - array ( - 'id' => '484', - 'time' => '2013-10-18 14:31:24', - ), - 484 => - array ( - 'id' => '485', - 'time' => '2013-10-18 14:31:24', - ), - 485 => - array ( - 'id' => '486', - 'time' => '2013-10-18 14:31:24', - ), - 486 => - array ( - 'id' => '487', - 'time' => '2013-10-18 14:31:24', - ), - 487 => - array ( - 'id' => '488', - 'time' => '2013-10-18 14:31:24', - ), - 488 => - array ( - 'id' => '489', - 'time' => '2013-10-18 14:31:24', - ), - 489 => - array ( - 'id' => '490', - 'time' => '2013-10-18 14:31:24', - ), - 490 => - array ( - 'id' => '491', - 'time' => '2013-10-18 14:31:24', - ), - 491 => - array ( - 'id' => '492', - 'time' => '2013-10-18 14:31:24', - ), - 492 => - array ( - 'id' => '493', - 'time' => '2013-10-18 14:31:24', - ), - 493 => - array ( - 'id' => '494', - 'time' => '2013-10-18 14:31:24', - ), - 494 => - array ( - 'id' => '495', - 'time' => '2013-10-18 14:31:24', - ), - 495 => - array ( - 'id' => '496', - 'time' => '2013-10-18 14:31:24', - ), - 496 => - array ( - 'id' => '497', - 'time' => '2013-10-18 14:31:24', - ), - 497 => - array ( - 'id' => '498', - 'time' => '2013-10-18 14:31:24', - ), - 498 => - array ( - 'id' => '499', - 'time' => '2013-10-18 14:31:24', - ), - 499 => - array ( - 'id' => '500', - 'time' => '2013-10-18 14:31:24', - ), - )); - \DB::table('test_table')->insert(array ( - 0 => - array ( - 'id' => '501', - 'time' => '2013-10-18 14:31:24', - ), - 1 => - array ( - 'id' => '502', - 'time' => '2013-10-18 14:31:24', - ), - 2 => - array ( - 'id' => '503', - 'time' => '2013-10-18 14:31:24', - ), - 3 => - array ( - 'id' => '504', - 'time' => '2013-10-18 14:31:24', - ), - 4 => - array ( - 'id' => '505', - 'time' => '2013-10-18 14:31:24', - ), - )); - } + \DB::table('test_table')->delete(); + + \DB::table('test_table')->insert(array ( + 0 => + array ( + 'id' => '1', + 'time' => '2013-10-18 14:31:24', + ), + 1 => + array ( + 'id' => '2', + 'time' => '2013-10-18 14:31:24', + ), + 2 => + array ( + 'id' => '3', + 'time' => '2013-10-18 14:31:24', + ), + 3 => + array ( + 'id' => '4', + 'time' => '2013-10-18 14:31:24', + ), + 4 => + array ( + 'id' => '5', + 'time' => '2013-10-18 14:31:24', + ), + 5 => + array ( + 'id' => '6', + 'time' => '2013-10-18 14:31:24', + ), + 6 => + array ( + 'id' => '7', + 'time' => '2013-10-18 14:31:24', + ), + 7 => + array ( + 'id' => '8', + 'time' => '2013-10-18 14:31:24', + ), + 8 => + array ( + 'id' => '9', + 'time' => '2013-10-18 14:31:24', + ), + 9 => + array ( + 'id' => '10', + 'time' => '2013-10-18 14:31:24', + ), + 10 => + array ( + 'id' => '11', + 'time' => '2013-10-18 14:31:24', + ), + 11 => + array ( + 'id' => '12', + 'time' => '2013-10-18 14:31:24', + ), + 12 => + array ( + 'id' => '13', + 'time' => '2013-10-18 14:31:24', + ), + 13 => + array ( + 'id' => '14', + 'time' => '2013-10-18 14:31:24', + ), + 14 => + array ( + 'id' => '15', + 'time' => '2013-10-18 14:31:24', + ), + 15 => + array ( + 'id' => '16', + 'time' => '2013-10-18 14:31:24', + ), + 16 => + array ( + 'id' => '17', + 'time' => '2013-10-18 14:31:24', + ), + 17 => + array ( + 'id' => '18', + 'time' => '2013-10-18 14:31:24', + ), + 18 => + array ( + 'id' => '19', + 'time' => '2013-10-18 14:31:24', + ), + 19 => + array ( + 'id' => '20', + 'time' => '2013-10-18 14:31:24', + ), + 20 => + array ( + 'id' => '21', + 'time' => '2013-10-18 14:31:24', + ), + 21 => + array ( + 'id' => '22', + 'time' => '2013-10-18 14:31:24', + ), + 22 => + array ( + 'id' => '23', + 'time' => '2013-10-18 14:31:24', + ), + 23 => + array ( + 'id' => '24', + 'time' => '2013-10-18 14:31:24', + ), + 24 => + array ( + 'id' => '25', + 'time' => '2013-10-18 14:31:24', + ), + 25 => + array ( + 'id' => '26', + 'time' => '2013-10-18 14:31:24', + ), + 26 => + array ( + 'id' => '27', + 'time' => '2013-10-18 14:31:24', + ), + 27 => + array ( + 'id' => '28', + 'time' => '2013-10-18 14:31:24', + ), + 28 => + array ( + 'id' => '29', + 'time' => '2013-10-18 14:31:24', + ), + 29 => + array ( + 'id' => '30', + 'time' => '2013-10-18 14:31:24', + ), + 30 => + array ( + 'id' => '31', + 'time' => '2013-10-18 14:31:24', + ), + 31 => + array ( + 'id' => '32', + 'time' => '2013-10-18 14:31:24', + ), + 32 => + array ( + 'id' => '33', + 'time' => '2013-10-18 14:31:24', + ), + 33 => + array ( + 'id' => '34', + 'time' => '2013-10-18 14:31:24', + ), + 34 => + array ( + 'id' => '35', + 'time' => '2013-10-18 14:31:24', + ), + 35 => + array ( + 'id' => '36', + 'time' => '2013-10-18 14:31:24', + ), + 36 => + array ( + 'id' => '37', + 'time' => '2013-10-18 14:31:24', + ), + 37 => + array ( + 'id' => '38', + 'time' => '2013-10-18 14:31:24', + ), + 38 => + array ( + 'id' => '39', + 'time' => '2013-10-18 14:31:24', + ), + 39 => + array ( + 'id' => '40', + 'time' => '2013-10-18 14:31:24', + ), + 40 => + array ( + 'id' => '41', + 'time' => '2013-10-18 14:31:24', + ), + 41 => + array ( + 'id' => '42', + 'time' => '2013-10-18 14:31:24', + ), + 42 => + array ( + 'id' => '43', + 'time' => '2013-10-18 14:31:24', + ), + 43 => + array ( + 'id' => '44', + 'time' => '2013-10-18 14:31:24', + ), + 44 => + array ( + 'id' => '45', + 'time' => '2013-10-18 14:31:24', + ), + 45 => + array ( + 'id' => '46', + 'time' => '2013-10-18 14:31:24', + ), + 46 => + array ( + 'id' => '47', + 'time' => '2013-10-18 14:31:24', + ), + 47 => + array ( + 'id' => '48', + 'time' => '2013-10-18 14:31:24', + ), + 48 => + array ( + 'id' => '49', + 'time' => '2013-10-18 14:31:24', + ), + 49 => + array ( + 'id' => '50', + 'time' => '2013-10-18 14:31:24', + ), + 50 => + array ( + 'id' => '51', + 'time' => '2013-10-18 14:31:24', + ), + 51 => + array ( + 'id' => '52', + 'time' => '2013-10-18 14:31:24', + ), + 52 => + array ( + 'id' => '53', + 'time' => '2013-10-18 14:31:24', + ), + 53 => + array ( + 'id' => '54', + 'time' => '2013-10-18 14:31:24', + ), + 54 => + array ( + 'id' => '55', + 'time' => '2013-10-18 14:31:24', + ), + 55 => + array ( + 'id' => '56', + 'time' => '2013-10-18 14:31:24', + ), + 56 => + array ( + 'id' => '57', + 'time' => '2013-10-18 14:31:24', + ), + 57 => + array ( + 'id' => '58', + 'time' => '2013-10-18 14:31:24', + ), + 58 => + array ( + 'id' => '59', + 'time' => '2013-10-18 14:31:24', + ), + 59 => + array ( + 'id' => '60', + 'time' => '2013-10-18 14:31:24', + ), + 60 => + array ( + 'id' => '61', + 'time' => '2013-10-18 14:31:24', + ), + 61 => + array ( + 'id' => '62', + 'time' => '2013-10-18 14:31:24', + ), + 62 => + array ( + 'id' => '63', + 'time' => '2013-10-18 14:31:24', + ), + 63 => + array ( + 'id' => '64', + 'time' => '2013-10-18 14:31:24', + ), + 64 => + array ( + 'id' => '65', + 'time' => '2013-10-18 14:31:24', + ), + 65 => + array ( + 'id' => '66', + 'time' => '2013-10-18 14:31:24', + ), + 66 => + array ( + 'id' => '67', + 'time' => '2013-10-18 14:31:24', + ), + 67 => + array ( + 'id' => '68', + 'time' => '2013-10-18 14:31:24', + ), + 68 => + array ( + 'id' => '69', + 'time' => '2013-10-18 14:31:24', + ), + 69 => + array ( + 'id' => '70', + 'time' => '2013-10-18 14:31:24', + ), + 70 => + array ( + 'id' => '71', + 'time' => '2013-10-18 14:31:24', + ), + 71 => + array ( + 'id' => '72', + 'time' => '2013-10-18 14:31:24', + ), + 72 => + array ( + 'id' => '73', + 'time' => '2013-10-18 14:31:24', + ), + 73 => + array ( + 'id' => '74', + 'time' => '2013-10-18 14:31:24', + ), + 74 => + array ( + 'id' => '75', + 'time' => '2013-10-18 14:31:24', + ), + 75 => + array ( + 'id' => '76', + 'time' => '2013-10-18 14:31:24', + ), + 76 => + array ( + 'id' => '77', + 'time' => '2013-10-18 14:31:24', + ), + 77 => + array ( + 'id' => '78', + 'time' => '2013-10-18 14:31:24', + ), + 78 => + array ( + 'id' => '79', + 'time' => '2013-10-18 14:31:24', + ), + 79 => + array ( + 'id' => '80', + 'time' => '2013-10-18 14:31:24', + ), + 80 => + array ( + 'id' => '81', + 'time' => '2013-10-18 14:31:24', + ), + 81 => + array ( + 'id' => '82', + 'time' => '2013-10-18 14:31:24', + ), + 82 => + array ( + 'id' => '83', + 'time' => '2013-10-18 14:31:24', + ), + 83 => + array ( + 'id' => '84', + 'time' => '2013-10-18 14:31:24', + ), + 84 => + array ( + 'id' => '85', + 'time' => '2013-10-18 14:31:24', + ), + 85 => + array ( + 'id' => '86', + 'time' => '2013-10-18 14:31:24', + ), + 86 => + array ( + 'id' => '87', + 'time' => '2013-10-18 14:31:24', + ), + 87 => + array ( + 'id' => '88', + 'time' => '2013-10-18 14:31:24', + ), + 88 => + array ( + 'id' => '89', + 'time' => '2013-10-18 14:31:24', + ), + 89 => + array ( + 'id' => '90', + 'time' => '2013-10-18 14:31:24', + ), + 90 => + array ( + 'id' => '91', + 'time' => '2013-10-18 14:31:24', + ), + 91 => + array ( + 'id' => '92', + 'time' => '2013-10-18 14:31:24', + ), + 92 => + array ( + 'id' => '93', + 'time' => '2013-10-18 14:31:24', + ), + 93 => + array ( + 'id' => '94', + 'time' => '2013-10-18 14:31:24', + ), + 94 => + array ( + 'id' => '95', + 'time' => '2013-10-18 14:31:24', + ), + 95 => + array ( + 'id' => '96', + 'time' => '2013-10-18 14:31:24', + ), + 96 => + array ( + 'id' => '97', + 'time' => '2013-10-18 14:31:24', + ), + 97 => + array ( + 'id' => '98', + 'time' => '2013-10-18 14:31:24', + ), + 98 => + array ( + 'id' => '99', + 'time' => '2013-10-18 14:31:24', + ), + 99 => + array ( + 'id' => '100', + 'time' => '2013-10-18 14:31:24', + ), + 100 => + array ( + 'id' => '101', + 'time' => '2013-10-18 14:31:24', + ), + 101 => + array ( + 'id' => '102', + 'time' => '2013-10-18 14:31:24', + ), + 102 => + array ( + 'id' => '103', + 'time' => '2013-10-18 14:31:24', + ), + 103 => + array ( + 'id' => '104', + 'time' => '2013-10-18 14:31:24', + ), + 104 => + array ( + 'id' => '105', + 'time' => '2013-10-18 14:31:24', + ), + 105 => + array ( + 'id' => '106', + 'time' => '2013-10-18 14:31:24', + ), + 106 => + array ( + 'id' => '107', + 'time' => '2013-10-18 14:31:24', + ), + 107 => + array ( + 'id' => '108', + 'time' => '2013-10-18 14:31:24', + ), + 108 => + array ( + 'id' => '109', + 'time' => '2013-10-18 14:31:24', + ), + 109 => + array ( + 'id' => '110', + 'time' => '2013-10-18 14:31:24', + ), + 110 => + array ( + 'id' => '111', + 'time' => '2013-10-18 14:31:24', + ), + 111 => + array ( + 'id' => '112', + 'time' => '2013-10-18 14:31:24', + ), + 112 => + array ( + 'id' => '113', + 'time' => '2013-10-18 14:31:24', + ), + 113 => + array ( + 'id' => '114', + 'time' => '2013-10-18 14:31:24', + ), + 114 => + array ( + 'id' => '115', + 'time' => '2013-10-18 14:31:24', + ), + 115 => + array ( + 'id' => '116', + 'time' => '2013-10-18 14:31:24', + ), + 116 => + array ( + 'id' => '117', + 'time' => '2013-10-18 14:31:24', + ), + 117 => + array ( + 'id' => '118', + 'time' => '2013-10-18 14:31:24', + ), + 118 => + array ( + 'id' => '119', + 'time' => '2013-10-18 14:31:24', + ), + 119 => + array ( + 'id' => '120', + 'time' => '2013-10-18 14:31:24', + ), + 120 => + array ( + 'id' => '121', + 'time' => '2013-10-18 14:31:24', + ), + 121 => + array ( + 'id' => '122', + 'time' => '2013-10-18 14:31:24', + ), + 122 => + array ( + 'id' => '123', + 'time' => '2013-10-18 14:31:24', + ), + 123 => + array ( + 'id' => '124', + 'time' => '2013-10-18 14:31:24', + ), + 124 => + array ( + 'id' => '125', + 'time' => '2013-10-18 14:31:24', + ), + 125 => + array ( + 'id' => '126', + 'time' => '2013-10-18 14:31:24', + ), + 126 => + array ( + 'id' => '127', + 'time' => '2013-10-18 14:31:24', + ), + 127 => + array ( + 'id' => '128', + 'time' => '2013-10-18 14:31:24', + ), + 128 => + array ( + 'id' => '129', + 'time' => '2013-10-18 14:31:24', + ), + 129 => + array ( + 'id' => '130', + 'time' => '2013-10-18 14:31:24', + ), + 130 => + array ( + 'id' => '131', + 'time' => '2013-10-18 14:31:24', + ), + 131 => + array ( + 'id' => '132', + 'time' => '2013-10-18 14:31:24', + ), + 132 => + array ( + 'id' => '133', + 'time' => '2013-10-18 14:31:24', + ), + 133 => + array ( + 'id' => '134', + 'time' => '2013-10-18 14:31:24', + ), + 134 => + array ( + 'id' => '135', + 'time' => '2013-10-18 14:31:24', + ), + 135 => + array ( + 'id' => '136', + 'time' => '2013-10-18 14:31:24', + ), + 136 => + array ( + 'id' => '137', + 'time' => '2013-10-18 14:31:24', + ), + 137 => + array ( + 'id' => '138', + 'time' => '2013-10-18 14:31:24', + ), + 138 => + array ( + 'id' => '139', + 'time' => '2013-10-18 14:31:24', + ), + 139 => + array ( + 'id' => '140', + 'time' => '2013-10-18 14:31:24', + ), + 140 => + array ( + 'id' => '141', + 'time' => '2013-10-18 14:31:24', + ), + 141 => + array ( + 'id' => '142', + 'time' => '2013-10-18 14:31:24', + ), + 142 => + array ( + 'id' => '143', + 'time' => '2013-10-18 14:31:24', + ), + 143 => + array ( + 'id' => '144', + 'time' => '2013-10-18 14:31:24', + ), + 144 => + array ( + 'id' => '145', + 'time' => '2013-10-18 14:31:24', + ), + 145 => + array ( + 'id' => '146', + 'time' => '2013-10-18 14:31:24', + ), + 146 => + array ( + 'id' => '147', + 'time' => '2013-10-18 14:31:24', + ), + 147 => + array ( + 'id' => '148', + 'time' => '2013-10-18 14:31:24', + ), + 148 => + array ( + 'id' => '149', + 'time' => '2013-10-18 14:31:24', + ), + 149 => + array ( + 'id' => '150', + 'time' => '2013-10-18 14:31:24', + ), + 150 => + array ( + 'id' => '151', + 'time' => '2013-10-18 14:31:24', + ), + 151 => + array ( + 'id' => '152', + 'time' => '2013-10-18 14:31:24', + ), + 152 => + array ( + 'id' => '153', + 'time' => '2013-10-18 14:31:24', + ), + 153 => + array ( + 'id' => '154', + 'time' => '2013-10-18 14:31:24', + ), + 154 => + array ( + 'id' => '155', + 'time' => '2013-10-18 14:31:24', + ), + 155 => + array ( + 'id' => '156', + 'time' => '2013-10-18 14:31:24', + ), + 156 => + array ( + 'id' => '157', + 'time' => '2013-10-18 14:31:24', + ), + 157 => + array ( + 'id' => '158', + 'time' => '2013-10-18 14:31:24', + ), + 158 => + array ( + 'id' => '159', + 'time' => '2013-10-18 14:31:24', + ), + 159 => + array ( + 'id' => '160', + 'time' => '2013-10-18 14:31:24', + ), + 160 => + array ( + 'id' => '161', + 'time' => '2013-10-18 14:31:24', + ), + 161 => + array ( + 'id' => '162', + 'time' => '2013-10-18 14:31:24', + ), + 162 => + array ( + 'id' => '163', + 'time' => '2013-10-18 14:31:24', + ), + 163 => + array ( + 'id' => '164', + 'time' => '2013-10-18 14:31:24', + ), + 164 => + array ( + 'id' => '165', + 'time' => '2013-10-18 14:31:24', + ), + 165 => + array ( + 'id' => '166', + 'time' => '2013-10-18 14:31:24', + ), + 166 => + array ( + 'id' => '167', + 'time' => '2013-10-18 14:31:24', + ), + 167 => + array ( + 'id' => '168', + 'time' => '2013-10-18 14:31:24', + ), + 168 => + array ( + 'id' => '169', + 'time' => '2013-10-18 14:31:24', + ), + 169 => + array ( + 'id' => '170', + 'time' => '2013-10-18 14:31:24', + ), + 170 => + array ( + 'id' => '171', + 'time' => '2013-10-18 14:31:24', + ), + 171 => + array ( + 'id' => '172', + 'time' => '2013-10-18 14:31:24', + ), + 172 => + array ( + 'id' => '173', + 'time' => '2013-10-18 14:31:24', + ), + 173 => + array ( + 'id' => '174', + 'time' => '2013-10-18 14:31:24', + ), + 174 => + array ( + 'id' => '175', + 'time' => '2013-10-18 14:31:24', + ), + 175 => + array ( + 'id' => '176', + 'time' => '2013-10-18 14:31:24', + ), + 176 => + array ( + 'id' => '177', + 'time' => '2013-10-18 14:31:24', + ), + 177 => + array ( + 'id' => '178', + 'time' => '2013-10-18 14:31:24', + ), + 178 => + array ( + 'id' => '179', + 'time' => '2013-10-18 14:31:24', + ), + 179 => + array ( + 'id' => '180', + 'time' => '2013-10-18 14:31:24', + ), + 180 => + array ( + 'id' => '181', + 'time' => '2013-10-18 14:31:24', + ), + 181 => + array ( + 'id' => '182', + 'time' => '2013-10-18 14:31:24', + ), + 182 => + array ( + 'id' => '183', + 'time' => '2013-10-18 14:31:24', + ), + 183 => + array ( + 'id' => '184', + 'time' => '2013-10-18 14:31:24', + ), + 184 => + array ( + 'id' => '185', + 'time' => '2013-10-18 14:31:24', + ), + 185 => + array ( + 'id' => '186', + 'time' => '2013-10-18 14:31:24', + ), + 186 => + array ( + 'id' => '187', + 'time' => '2013-10-18 14:31:24', + ), + 187 => + array ( + 'id' => '188', + 'time' => '2013-10-18 14:31:24', + ), + 188 => + array ( + 'id' => '189', + 'time' => '2013-10-18 14:31:24', + ), + 189 => + array ( + 'id' => '190', + 'time' => '2013-10-18 14:31:24', + ), + 190 => + array ( + 'id' => '191', + 'time' => '2013-10-18 14:31:24', + ), + 191 => + array ( + 'id' => '192', + 'time' => '2013-10-18 14:31:24', + ), + 192 => + array ( + 'id' => '193', + 'time' => '2013-10-18 14:31:24', + ), + 193 => + array ( + 'id' => '194', + 'time' => '2013-10-18 14:31:24', + ), + 194 => + array ( + 'id' => '195', + 'time' => '2013-10-18 14:31:24', + ), + 195 => + array ( + 'id' => '196', + 'time' => '2013-10-18 14:31:24', + ), + 196 => + array ( + 'id' => '197', + 'time' => '2013-10-18 14:31:24', + ), + 197 => + array ( + 'id' => '198', + 'time' => '2013-10-18 14:31:24', + ), + 198 => + array ( + 'id' => '199', + 'time' => '2013-10-18 14:31:24', + ), + 199 => + array ( + 'id' => '200', + 'time' => '2013-10-18 14:31:24', + ), + 200 => + array ( + 'id' => '201', + 'time' => '2013-10-18 14:31:24', + ), + 201 => + array ( + 'id' => '202', + 'time' => '2013-10-18 14:31:24', + ), + 202 => + array ( + 'id' => '203', + 'time' => '2013-10-18 14:31:24', + ), + 203 => + array ( + 'id' => '204', + 'time' => '2013-10-18 14:31:24', + ), + 204 => + array ( + 'id' => '205', + 'time' => '2013-10-18 14:31:24', + ), + 205 => + array ( + 'id' => '206', + 'time' => '2013-10-18 14:31:24', + ), + 206 => + array ( + 'id' => '207', + 'time' => '2013-10-18 14:31:24', + ), + 207 => + array ( + 'id' => '208', + 'time' => '2013-10-18 14:31:24', + ), + 208 => + array ( + 'id' => '209', + 'time' => '2013-10-18 14:31:24', + ), + 209 => + array ( + 'id' => '210', + 'time' => '2013-10-18 14:31:24', + ), + 210 => + array ( + 'id' => '211', + 'time' => '2013-10-18 14:31:24', + ), + 211 => + array ( + 'id' => '212', + 'time' => '2013-10-18 14:31:24', + ), + 212 => + array ( + 'id' => '213', + 'time' => '2013-10-18 14:31:24', + ), + 213 => + array ( + 'id' => '214', + 'time' => '2013-10-18 14:31:24', + ), + 214 => + array ( + 'id' => '215', + 'time' => '2013-10-18 14:31:24', + ), + 215 => + array ( + 'id' => '216', + 'time' => '2013-10-18 14:31:24', + ), + 216 => + array ( + 'id' => '217', + 'time' => '2013-10-18 14:31:24', + ), + 217 => + array ( + 'id' => '218', + 'time' => '2013-10-18 14:31:24', + ), + 218 => + array ( + 'id' => '219', + 'time' => '2013-10-18 14:31:24', + ), + 219 => + array ( + 'id' => '220', + 'time' => '2013-10-18 14:31:24', + ), + 220 => + array ( + 'id' => '221', + 'time' => '2013-10-18 14:31:24', + ), + 221 => + array ( + 'id' => '222', + 'time' => '2013-10-18 14:31:24', + ), + 222 => + array ( + 'id' => '223', + 'time' => '2013-10-18 14:31:24', + ), + 223 => + array ( + 'id' => '224', + 'time' => '2013-10-18 14:31:24', + ), + 224 => + array ( + 'id' => '225', + 'time' => '2013-10-18 14:31:24', + ), + 225 => + array ( + 'id' => '226', + 'time' => '2013-10-18 14:31:24', + ), + 226 => + array ( + 'id' => '227', + 'time' => '2013-10-18 14:31:24', + ), + 227 => + array ( + 'id' => '228', + 'time' => '2013-10-18 14:31:24', + ), + 228 => + array ( + 'id' => '229', + 'time' => '2013-10-18 14:31:24', + ), + 229 => + array ( + 'id' => '230', + 'time' => '2013-10-18 14:31:24', + ), + 230 => + array ( + 'id' => '231', + 'time' => '2013-10-18 14:31:24', + ), + 231 => + array ( + 'id' => '232', + 'time' => '2013-10-18 14:31:24', + ), + 232 => + array ( + 'id' => '233', + 'time' => '2013-10-18 14:31:24', + ), + 233 => + array ( + 'id' => '234', + 'time' => '2013-10-18 14:31:24', + ), + 234 => + array ( + 'id' => '235', + 'time' => '2013-10-18 14:31:24', + ), + 235 => + array ( + 'id' => '236', + 'time' => '2013-10-18 14:31:24', + ), + 236 => + array ( + 'id' => '237', + 'time' => '2013-10-18 14:31:24', + ), + 237 => + array ( + 'id' => '238', + 'time' => '2013-10-18 14:31:24', + ), + 238 => + array ( + 'id' => '239', + 'time' => '2013-10-18 14:31:24', + ), + 239 => + array ( + 'id' => '240', + 'time' => '2013-10-18 14:31:24', + ), + 240 => + array ( + 'id' => '241', + 'time' => '2013-10-18 14:31:24', + ), + 241 => + array ( + 'id' => '242', + 'time' => '2013-10-18 14:31:24', + ), + 242 => + array ( + 'id' => '243', + 'time' => '2013-10-18 14:31:24', + ), + 243 => + array ( + 'id' => '244', + 'time' => '2013-10-18 14:31:24', + ), + 244 => + array ( + 'id' => '245', + 'time' => '2013-10-18 14:31:24', + ), + 245 => + array ( + 'id' => '246', + 'time' => '2013-10-18 14:31:24', + ), + 246 => + array ( + 'id' => '247', + 'time' => '2013-10-18 14:31:24', + ), + 247 => + array ( + 'id' => '248', + 'time' => '2013-10-18 14:31:24', + ), + 248 => + array ( + 'id' => '249', + 'time' => '2013-10-18 14:31:24', + ), + 249 => + array ( + 'id' => '250', + 'time' => '2013-10-18 14:31:24', + ), + 250 => + array ( + 'id' => '251', + 'time' => '2013-10-18 14:31:24', + ), + 251 => + array ( + 'id' => '252', + 'time' => '2013-10-18 14:31:24', + ), + 252 => + array ( + 'id' => '253', + 'time' => '2013-10-18 14:31:24', + ), + 253 => + array ( + 'id' => '254', + 'time' => '2013-10-18 14:31:24', + ), + 254 => + array ( + 'id' => '255', + 'time' => '2013-10-18 14:31:24', + ), + 255 => + array ( + 'id' => '256', + 'time' => '2013-10-18 14:31:24', + ), + 256 => + array ( + 'id' => '257', + 'time' => '2013-10-18 14:31:24', + ), + 257 => + array ( + 'id' => '258', + 'time' => '2013-10-18 14:31:24', + ), + 258 => + array ( + 'id' => '259', + 'time' => '2013-10-18 14:31:24', + ), + 259 => + array ( + 'id' => '260', + 'time' => '2013-10-18 14:31:24', + ), + 260 => + array ( + 'id' => '261', + 'time' => '2013-10-18 14:31:24', + ), + 261 => + array ( + 'id' => '262', + 'time' => '2013-10-18 14:31:24', + ), + 262 => + array ( + 'id' => '263', + 'time' => '2013-10-18 14:31:24', + ), + 263 => + array ( + 'id' => '264', + 'time' => '2013-10-18 14:31:24', + ), + 264 => + array ( + 'id' => '265', + 'time' => '2013-10-18 14:31:24', + ), + 265 => + array ( + 'id' => '266', + 'time' => '2013-10-18 14:31:24', + ), + 266 => + array ( + 'id' => '267', + 'time' => '2013-10-18 14:31:24', + ), + 267 => + array ( + 'id' => '268', + 'time' => '2013-10-18 14:31:24', + ), + 268 => + array ( + 'id' => '269', + 'time' => '2013-10-18 14:31:24', + ), + 269 => + array ( + 'id' => '270', + 'time' => '2013-10-18 14:31:24', + ), + 270 => + array ( + 'id' => '271', + 'time' => '2013-10-18 14:31:24', + ), + 271 => + array ( + 'id' => '272', + 'time' => '2013-10-18 14:31:24', + ), + 272 => + array ( + 'id' => '273', + 'time' => '2013-10-18 14:31:24', + ), + 273 => + array ( + 'id' => '274', + 'time' => '2013-10-18 14:31:24', + ), + 274 => + array ( + 'id' => '275', + 'time' => '2013-10-18 14:31:24', + ), + 275 => + array ( + 'id' => '276', + 'time' => '2013-10-18 14:31:24', + ), + 276 => + array ( + 'id' => '277', + 'time' => '2013-10-18 14:31:24', + ), + 277 => + array ( + 'id' => '278', + 'time' => '2013-10-18 14:31:24', + ), + 278 => + array ( + 'id' => '279', + 'time' => '2013-10-18 14:31:24', + ), + 279 => + array ( + 'id' => '280', + 'time' => '2013-10-18 14:31:24', + ), + 280 => + array ( + 'id' => '281', + 'time' => '2013-10-18 14:31:24', + ), + 281 => + array ( + 'id' => '282', + 'time' => '2013-10-18 14:31:24', + ), + 282 => + array ( + 'id' => '283', + 'time' => '2013-10-18 14:31:24', + ), + 283 => + array ( + 'id' => '284', + 'time' => '2013-10-18 14:31:24', + ), + 284 => + array ( + 'id' => '285', + 'time' => '2013-10-18 14:31:24', + ), + 285 => + array ( + 'id' => '286', + 'time' => '2013-10-18 14:31:24', + ), + 286 => + array ( + 'id' => '287', + 'time' => '2013-10-18 14:31:24', + ), + 287 => + array ( + 'id' => '288', + 'time' => '2013-10-18 14:31:24', + ), + 288 => + array ( + 'id' => '289', + 'time' => '2013-10-18 14:31:24', + ), + 289 => + array ( + 'id' => '290', + 'time' => '2013-10-18 14:31:24', + ), + 290 => + array ( + 'id' => '291', + 'time' => '2013-10-18 14:31:24', + ), + 291 => + array ( + 'id' => '292', + 'time' => '2013-10-18 14:31:24', + ), + 292 => + array ( + 'id' => '293', + 'time' => '2013-10-18 14:31:24', + ), + 293 => + array ( + 'id' => '294', + 'time' => '2013-10-18 14:31:24', + ), + 294 => + array ( + 'id' => '295', + 'time' => '2013-10-18 14:31:24', + ), + 295 => + array ( + 'id' => '296', + 'time' => '2013-10-18 14:31:24', + ), + 296 => + array ( + 'id' => '297', + 'time' => '2013-10-18 14:31:24', + ), + 297 => + array ( + 'id' => '298', + 'time' => '2013-10-18 14:31:24', + ), + 298 => + array ( + 'id' => '299', + 'time' => '2013-10-18 14:31:24', + ), + 299 => + array ( + 'id' => '300', + 'time' => '2013-10-18 14:31:24', + ), + 300 => + array ( + 'id' => '301', + 'time' => '2013-10-18 14:31:24', + ), + 301 => + array ( + 'id' => '302', + 'time' => '2013-10-18 14:31:24', + ), + 302 => + array ( + 'id' => '303', + 'time' => '2013-10-18 14:31:24', + ), + 303 => + array ( + 'id' => '304', + 'time' => '2013-10-18 14:31:24', + ), + 304 => + array ( + 'id' => '305', + 'time' => '2013-10-18 14:31:24', + ), + 305 => + array ( + 'id' => '306', + 'time' => '2013-10-18 14:31:24', + ), + 306 => + array ( + 'id' => '307', + 'time' => '2013-10-18 14:31:24', + ), + 307 => + array ( + 'id' => '308', + 'time' => '2013-10-18 14:31:24', + ), + 308 => + array ( + 'id' => '309', + 'time' => '2013-10-18 14:31:24', + ), + 309 => + array ( + 'id' => '310', + 'time' => '2013-10-18 14:31:24', + ), + 310 => + array ( + 'id' => '311', + 'time' => '2013-10-18 14:31:24', + ), + 311 => + array ( + 'id' => '312', + 'time' => '2013-10-18 14:31:24', + ), + 312 => + array ( + 'id' => '313', + 'time' => '2013-10-18 14:31:24', + ), + 313 => + array ( + 'id' => '314', + 'time' => '2013-10-18 14:31:24', + ), + 314 => + array ( + 'id' => '315', + 'time' => '2013-10-18 14:31:24', + ), + 315 => + array ( + 'id' => '316', + 'time' => '2013-10-18 14:31:24', + ), + 316 => + array ( + 'id' => '317', + 'time' => '2013-10-18 14:31:24', + ), + 317 => + array ( + 'id' => '318', + 'time' => '2013-10-18 14:31:24', + ), + 318 => + array ( + 'id' => '319', + 'time' => '2013-10-18 14:31:24', + ), + 319 => + array ( + 'id' => '320', + 'time' => '2013-10-18 14:31:24', + ), + 320 => + array ( + 'id' => '321', + 'time' => '2013-10-18 14:31:24', + ), + 321 => + array ( + 'id' => '322', + 'time' => '2013-10-18 14:31:24', + ), + 322 => + array ( + 'id' => '323', + 'time' => '2013-10-18 14:31:24', + ), + 323 => + array ( + 'id' => '324', + 'time' => '2013-10-18 14:31:24', + ), + 324 => + array ( + 'id' => '325', + 'time' => '2013-10-18 14:31:24', + ), + 325 => + array ( + 'id' => '326', + 'time' => '2013-10-18 14:31:24', + ), + 326 => + array ( + 'id' => '327', + 'time' => '2013-10-18 14:31:24', + ), + 327 => + array ( + 'id' => '328', + 'time' => '2013-10-18 14:31:24', + ), + 328 => + array ( + 'id' => '329', + 'time' => '2013-10-18 14:31:24', + ), + 329 => + array ( + 'id' => '330', + 'time' => '2013-10-18 14:31:24', + ), + 330 => + array ( + 'id' => '331', + 'time' => '2013-10-18 14:31:24', + ), + 331 => + array ( + 'id' => '332', + 'time' => '2013-10-18 14:31:24', + ), + 332 => + array ( + 'id' => '333', + 'time' => '2013-10-18 14:31:24', + ), + 333 => + array ( + 'id' => '334', + 'time' => '2013-10-18 14:31:24', + ), + 334 => + array ( + 'id' => '335', + 'time' => '2013-10-18 14:31:24', + ), + 335 => + array ( + 'id' => '336', + 'time' => '2013-10-18 14:31:24', + ), + 336 => + array ( + 'id' => '337', + 'time' => '2013-10-18 14:31:24', + ), + 337 => + array ( + 'id' => '338', + 'time' => '2013-10-18 14:31:24', + ), + 338 => + array ( + 'id' => '339', + 'time' => '2013-10-18 14:31:24', + ), + 339 => + array ( + 'id' => '340', + 'time' => '2013-10-18 14:31:24', + ), + 340 => + array ( + 'id' => '341', + 'time' => '2013-10-18 14:31:24', + ), + 341 => + array ( + 'id' => '342', + 'time' => '2013-10-18 14:31:24', + ), + 342 => + array ( + 'id' => '343', + 'time' => '2013-10-18 14:31:24', + ), + 343 => + array ( + 'id' => '344', + 'time' => '2013-10-18 14:31:24', + ), + 344 => + array ( + 'id' => '345', + 'time' => '2013-10-18 14:31:24', + ), + 345 => + array ( + 'id' => '346', + 'time' => '2013-10-18 14:31:24', + ), + 346 => + array ( + 'id' => '347', + 'time' => '2013-10-18 14:31:24', + ), + 347 => + array ( + 'id' => '348', + 'time' => '2013-10-18 14:31:24', + ), + 348 => + array ( + 'id' => '349', + 'time' => '2013-10-18 14:31:24', + ), + 349 => + array ( + 'id' => '350', + 'time' => '2013-10-18 14:31:24', + ), + 350 => + array ( + 'id' => '351', + 'time' => '2013-10-18 14:31:24', + ), + 351 => + array ( + 'id' => '352', + 'time' => '2013-10-18 14:31:24', + ), + 352 => + array ( + 'id' => '353', + 'time' => '2013-10-18 14:31:24', + ), + 353 => + array ( + 'id' => '354', + 'time' => '2013-10-18 14:31:24', + ), + 354 => + array ( + 'id' => '355', + 'time' => '2013-10-18 14:31:24', + ), + 355 => + array ( + 'id' => '356', + 'time' => '2013-10-18 14:31:24', + ), + 356 => + array ( + 'id' => '357', + 'time' => '2013-10-18 14:31:24', + ), + 357 => + array ( + 'id' => '358', + 'time' => '2013-10-18 14:31:24', + ), + 358 => + array ( + 'id' => '359', + 'time' => '2013-10-18 14:31:24', + ), + 359 => + array ( + 'id' => '360', + 'time' => '2013-10-18 14:31:24', + ), + 360 => + array ( + 'id' => '361', + 'time' => '2013-10-18 14:31:24', + ), + 361 => + array ( + 'id' => '362', + 'time' => '2013-10-18 14:31:24', + ), + 362 => + array ( + 'id' => '363', + 'time' => '2013-10-18 14:31:24', + ), + 363 => + array ( + 'id' => '364', + 'time' => '2013-10-18 14:31:24', + ), + 364 => + array ( + 'id' => '365', + 'time' => '2013-10-18 14:31:24', + ), + 365 => + array ( + 'id' => '366', + 'time' => '2013-10-18 14:31:24', + ), + 366 => + array ( + 'id' => '367', + 'time' => '2013-10-18 14:31:24', + ), + 367 => + array ( + 'id' => '368', + 'time' => '2013-10-18 14:31:24', + ), + 368 => + array ( + 'id' => '369', + 'time' => '2013-10-18 14:31:24', + ), + 369 => + array ( + 'id' => '370', + 'time' => '2013-10-18 14:31:24', + ), + 370 => + array ( + 'id' => '371', + 'time' => '2013-10-18 14:31:24', + ), + 371 => + array ( + 'id' => '372', + 'time' => '2013-10-18 14:31:24', + ), + 372 => + array ( + 'id' => '373', + 'time' => '2013-10-18 14:31:24', + ), + 373 => + array ( + 'id' => '374', + 'time' => '2013-10-18 14:31:24', + ), + 374 => + array ( + 'id' => '375', + 'time' => '2013-10-18 14:31:24', + ), + 375 => + array ( + 'id' => '376', + 'time' => '2013-10-18 14:31:24', + ), + 376 => + array ( + 'id' => '377', + 'time' => '2013-10-18 14:31:24', + ), + 377 => + array ( + 'id' => '378', + 'time' => '2013-10-18 14:31:24', + ), + 378 => + array ( + 'id' => '379', + 'time' => '2013-10-18 14:31:24', + ), + 379 => + array ( + 'id' => '380', + 'time' => '2013-10-18 14:31:24', + ), + 380 => + array ( + 'id' => '381', + 'time' => '2013-10-18 14:31:24', + ), + 381 => + array ( + 'id' => '382', + 'time' => '2013-10-18 14:31:24', + ), + 382 => + array ( + 'id' => '383', + 'time' => '2013-10-18 14:31:24', + ), + 383 => + array ( + 'id' => '384', + 'time' => '2013-10-18 14:31:24', + ), + 384 => + array ( + 'id' => '385', + 'time' => '2013-10-18 14:31:24', + ), + 385 => + array ( + 'id' => '386', + 'time' => '2013-10-18 14:31:24', + ), + 386 => + array ( + 'id' => '387', + 'time' => '2013-10-18 14:31:24', + ), + 387 => + array ( + 'id' => '388', + 'time' => '2013-10-18 14:31:24', + ), + 388 => + array ( + 'id' => '389', + 'time' => '2013-10-18 14:31:24', + ), + 389 => + array ( + 'id' => '390', + 'time' => '2013-10-18 14:31:24', + ), + 390 => + array ( + 'id' => '391', + 'time' => '2013-10-18 14:31:24', + ), + 391 => + array ( + 'id' => '392', + 'time' => '2013-10-18 14:31:24', + ), + 392 => + array ( + 'id' => '393', + 'time' => '2013-10-18 14:31:24', + ), + 393 => + array ( + 'id' => '394', + 'time' => '2013-10-18 14:31:24', + ), + 394 => + array ( + 'id' => '395', + 'time' => '2013-10-18 14:31:24', + ), + 395 => + array ( + 'id' => '396', + 'time' => '2013-10-18 14:31:24', + ), + 396 => + array ( + 'id' => '397', + 'time' => '2013-10-18 14:31:24', + ), + 397 => + array ( + 'id' => '398', + 'time' => '2013-10-18 14:31:24', + ), + 398 => + array ( + 'id' => '399', + 'time' => '2013-10-18 14:31:24', + ), + 399 => + array ( + 'id' => '400', + 'time' => '2013-10-18 14:31:24', + ), + 400 => + array ( + 'id' => '401', + 'time' => '2013-10-18 14:31:24', + ), + 401 => + array ( + 'id' => '402', + 'time' => '2013-10-18 14:31:24', + ), + 402 => + array ( + 'id' => '403', + 'time' => '2013-10-18 14:31:24', + ), + 403 => + array ( + 'id' => '404', + 'time' => '2013-10-18 14:31:24', + ), + 404 => + array ( + 'id' => '405', + 'time' => '2013-10-18 14:31:24', + ), + 405 => + array ( + 'id' => '406', + 'time' => '2013-10-18 14:31:24', + ), + 406 => + array ( + 'id' => '407', + 'time' => '2013-10-18 14:31:24', + ), + 407 => + array ( + 'id' => '408', + 'time' => '2013-10-18 14:31:24', + ), + 408 => + array ( + 'id' => '409', + 'time' => '2013-10-18 14:31:24', + ), + 409 => + array ( + 'id' => '410', + 'time' => '2013-10-18 14:31:24', + ), + 410 => + array ( + 'id' => '411', + 'time' => '2013-10-18 14:31:24', + ), + 411 => + array ( + 'id' => '412', + 'time' => '2013-10-18 14:31:24', + ), + 412 => + array ( + 'id' => '413', + 'time' => '2013-10-18 14:31:24', + ), + 413 => + array ( + 'id' => '414', + 'time' => '2013-10-18 14:31:24', + ), + 414 => + array ( + 'id' => '415', + 'time' => '2013-10-18 14:31:24', + ), + 415 => + array ( + 'id' => '416', + 'time' => '2013-10-18 14:31:24', + ), + 416 => + array ( + 'id' => '417', + 'time' => '2013-10-18 14:31:24', + ), + 417 => + array ( + 'id' => '418', + 'time' => '2013-10-18 14:31:24', + ), + 418 => + array ( + 'id' => '419', + 'time' => '2013-10-18 14:31:24', + ), + 419 => + array ( + 'id' => '420', + 'time' => '2013-10-18 14:31:24', + ), + 420 => + array ( + 'id' => '421', + 'time' => '2013-10-18 14:31:24', + ), + 421 => + array ( + 'id' => '422', + 'time' => '2013-10-18 14:31:24', + ), + 422 => + array ( + 'id' => '423', + 'time' => '2013-10-18 14:31:24', + ), + 423 => + array ( + 'id' => '424', + 'time' => '2013-10-18 14:31:24', + ), + 424 => + array ( + 'id' => '425', + 'time' => '2013-10-18 14:31:24', + ), + 425 => + array ( + 'id' => '426', + 'time' => '2013-10-18 14:31:24', + ), + 426 => + array ( + 'id' => '427', + 'time' => '2013-10-18 14:31:24', + ), + 427 => + array ( + 'id' => '428', + 'time' => '2013-10-18 14:31:24', + ), + 428 => + array ( + 'id' => '429', + 'time' => '2013-10-18 14:31:24', + ), + 429 => + array ( + 'id' => '430', + 'time' => '2013-10-18 14:31:24', + ), + 430 => + array ( + 'id' => '431', + 'time' => '2013-10-18 14:31:24', + ), + 431 => + array ( + 'id' => '432', + 'time' => '2013-10-18 14:31:24', + ), + 432 => + array ( + 'id' => '433', + 'time' => '2013-10-18 14:31:24', + ), + 433 => + array ( + 'id' => '434', + 'time' => '2013-10-18 14:31:24', + ), + 434 => + array ( + 'id' => '435', + 'time' => '2013-10-18 14:31:24', + ), + 435 => + array ( + 'id' => '436', + 'time' => '2013-10-18 14:31:24', + ), + 436 => + array ( + 'id' => '437', + 'time' => '2013-10-18 14:31:24', + ), + 437 => + array ( + 'id' => '438', + 'time' => '2013-10-18 14:31:24', + ), + 438 => + array ( + 'id' => '439', + 'time' => '2013-10-18 14:31:24', + ), + 439 => + array ( + 'id' => '440', + 'time' => '2013-10-18 14:31:24', + ), + 440 => + array ( + 'id' => '441', + 'time' => '2013-10-18 14:31:24', + ), + 441 => + array ( + 'id' => '442', + 'time' => '2013-10-18 14:31:24', + ), + 442 => + array ( + 'id' => '443', + 'time' => '2013-10-18 14:31:24', + ), + 443 => + array ( + 'id' => '444', + 'time' => '2013-10-18 14:31:24', + ), + 444 => + array ( + 'id' => '445', + 'time' => '2013-10-18 14:31:24', + ), + 445 => + array ( + 'id' => '446', + 'time' => '2013-10-18 14:31:24', + ), + 446 => + array ( + 'id' => '447', + 'time' => '2013-10-18 14:31:24', + ), + 447 => + array ( + 'id' => '448', + 'time' => '2013-10-18 14:31:24', + ), + 448 => + array ( + 'id' => '449', + 'time' => '2013-10-18 14:31:24', + ), + 449 => + array ( + 'id' => '450', + 'time' => '2013-10-18 14:31:24', + ), + 450 => + array ( + 'id' => '451', + 'time' => '2013-10-18 14:31:24', + ), + 451 => + array ( + 'id' => '452', + 'time' => '2013-10-18 14:31:24', + ), + 452 => + array ( + 'id' => '453', + 'time' => '2013-10-18 14:31:24', + ), + 453 => + array ( + 'id' => '454', + 'time' => '2013-10-18 14:31:24', + ), + 454 => + array ( + 'id' => '455', + 'time' => '2013-10-18 14:31:24', + ), + 455 => + array ( + 'id' => '456', + 'time' => '2013-10-18 14:31:24', + ), + 456 => + array ( + 'id' => '457', + 'time' => '2013-10-18 14:31:24', + ), + 457 => + array ( + 'id' => '458', + 'time' => '2013-10-18 14:31:24', + ), + 458 => + array ( + 'id' => '459', + 'time' => '2013-10-18 14:31:24', + ), + 459 => + array ( + 'id' => '460', + 'time' => '2013-10-18 14:31:24', + ), + 460 => + array ( + 'id' => '461', + 'time' => '2013-10-18 14:31:24', + ), + 461 => + array ( + 'id' => '462', + 'time' => '2013-10-18 14:31:24', + ), + 462 => + array ( + 'id' => '463', + 'time' => '2013-10-18 14:31:24', + ), + 463 => + array ( + 'id' => '464', + 'time' => '2013-10-18 14:31:24', + ), + 464 => + array ( + 'id' => '465', + 'time' => '2013-10-18 14:31:24', + ), + 465 => + array ( + 'id' => '466', + 'time' => '2013-10-18 14:31:24', + ), + 466 => + array ( + 'id' => '467', + 'time' => '2013-10-18 14:31:24', + ), + 467 => + array ( + 'id' => '468', + 'time' => '2013-10-18 14:31:24', + ), + 468 => + array ( + 'id' => '469', + 'time' => '2013-10-18 14:31:24', + ), + 469 => + array ( + 'id' => '470', + 'time' => '2013-10-18 14:31:24', + ), + 470 => + array ( + 'id' => '471', + 'time' => '2013-10-18 14:31:24', + ), + 471 => + array ( + 'id' => '472', + 'time' => '2013-10-18 14:31:24', + ), + 472 => + array ( + 'id' => '473', + 'time' => '2013-10-18 14:31:24', + ), + 473 => + array ( + 'id' => '474', + 'time' => '2013-10-18 14:31:24', + ), + 474 => + array ( + 'id' => '475', + 'time' => '2013-10-18 14:31:24', + ), + 475 => + array ( + 'id' => '476', + 'time' => '2013-10-18 14:31:24', + ), + 476 => + array ( + 'id' => '477', + 'time' => '2013-10-18 14:31:24', + ), + 477 => + array ( + 'id' => '478', + 'time' => '2013-10-18 14:31:24', + ), + 478 => + array ( + 'id' => '479', + 'time' => '2013-10-18 14:31:24', + ), + 479 => + array ( + 'id' => '480', + 'time' => '2013-10-18 14:31:24', + ), + 480 => + array ( + 'id' => '481', + 'time' => '2013-10-18 14:31:24', + ), + 481 => + array ( + 'id' => '482', + 'time' => '2013-10-18 14:31:24', + ), + 482 => + array ( + 'id' => '483', + 'time' => '2013-10-18 14:31:24', + ), + 483 => + array ( + 'id' => '484', + 'time' => '2013-10-18 14:31:24', + ), + 484 => + array ( + 'id' => '485', + 'time' => '2013-10-18 14:31:24', + ), + 485 => + array ( + 'id' => '486', + 'time' => '2013-10-18 14:31:24', + ), + 486 => + array ( + 'id' => '487', + 'time' => '2013-10-18 14:31:24', + ), + 487 => + array ( + 'id' => '488', + 'time' => '2013-10-18 14:31:24', + ), + 488 => + array ( + 'id' => '489', + 'time' => '2013-10-18 14:31:24', + ), + 489 => + array ( + 'id' => '490', + 'time' => '2013-10-18 14:31:24', + ), + 490 => + array ( + 'id' => '491', + 'time' => '2013-10-18 14:31:24', + ), + 491 => + array ( + 'id' => '492', + 'time' => '2013-10-18 14:31:24', + ), + 492 => + array ( + 'id' => '493', + 'time' => '2013-10-18 14:31:24', + ), + 493 => + array ( + 'id' => '494', + 'time' => '2013-10-18 14:31:24', + ), + 494 => + array ( + 'id' => '495', + 'time' => '2013-10-18 14:31:24', + ), + 495 => + array ( + 'id' => '496', + 'time' => '2013-10-18 14:31:24', + ), + 496 => + array ( + 'id' => '497', + 'time' => '2013-10-18 14:31:24', + ), + 497 => + array ( + 'id' => '498', + 'time' => '2013-10-18 14:31:24', + ), + 498 => + array ( + 'id' => '499', + 'time' => '2013-10-18 14:31:24', + ), + 499 => + array ( + 'id' => '500', + 'time' => '2013-10-18 14:31:24', + ), + )); + \DB::table('test_table')->insert(array ( + 0 => + array ( + 'id' => '501', + 'time' => '2013-10-18 14:31:24', + ), + 1 => + array ( + 'id' => '502', + 'time' => '2013-10-18 14:31:24', + ), + 2 => + array ( + 'id' => '503', + 'time' => '2013-10-18 14:31:24', + ), + 3 => + array ( + 'id' => '504', + 'time' => '2013-10-18 14:31:24', + ), + 4 => + array ( + 'id' => '505', + 'time' => '2013-10-18 14:31:24', + ), + )); + + + } } diff --git a/tests/Stubs/seed_blank.stub b/tests/Stubs/seed_blank.stub index 2e56800..e0973f9 100644 --- a/tests/Stubs/seed_blank.stub +++ b/tests/Stubs/seed_blank.stub @@ -2,17 +2,21 @@ use Illuminate\Database\Seeder; -class test_class extends Seeder { +class test_class extends Seeder +{ - /** - * Auto generated seed file - * - * @return void - */ - public function run() - { - \DB::table('test_table')->delete(); + /** + * Auto generated seed file + * + * @return void + */ + public function run() + { - } + \DB::table('test_table')->delete(); + + + + } }