Ejemplo n.º 1
0
 /**
  * Special method to load demo data for testing user interface pagination.  This will load enough data to
  * test each type of pagination.  Use this for development only.
  */
 public function actionLoadPaginationDemoData()
 {
     if (!Group::isUserASuperAdministrator(Yii::app()->user->userModel)) {
         throw new NotSupportedException();
     }
     UserInterfaceDevelopmentUtil::makePaginationData();
 }
Ejemplo n.º 2
0
 /**
  * Special method to load demo data for testing user interface pagination.  This will load enough data to
  * test each type of pagination.  Use this for development only.
  */
 public function actionLoadPaginationDemoData()
 {
     if (Yii::app()->user->userModel->username != 'super') {
         throw new NotSupportedException();
     }
     UserInterfaceDevelopmentUtil::makePaginationData();
 }