Ejemplo n.º 1
0
 /**
  * Resets 'crud' data to its default state
  *
  * @return  void
  */
 public static function reset_data()
 {
     \Session::destroy();
     \Session::create();
     \Session::set('crud', array('DB_NAME' => \Config::get('db.' . \Config::get('environment') . '.connection.database'), 'DB_TYPE' => \Config::get('db.' . \Config::get('environment') . '.type'), 'TBL_PREFIX' => \Config::get('db.' . \Config::get('environment') . '.table_prefix'), 'TBL_NAME' => null, 'TBL_PK' => null, 'TBL_SINGULAR' => null, 'TBL_PLURAL' => null, 'TBL_UCSINGULAR' => null, 'TBL_UCPLURAL' => null, 'TBL_COLUMN_PREFIX' => null, 'TBL_SORT_COLUMN' => null, 'COLUMNS' => null, 'NAMESPACE' => '', 'STENCIL_NAME' => \Config::get('crude.default_stencil'), 'STENCIL_DESC' => Stencil::get(\Config::get('crude.default_stencil'), 'desc'), 'STENCIL_OPTIONS' => Stencil::get_options()));
 }