Example #1
0
 public function actionFlash()
 {
     $model = new P3Media('search');
     $model->unsetAttributes();
     $model->attributes = array('mimeType' => 'flash');
     $this->render('index', array('model' => $model, 'defaultPreset' => 'original'));
 }
Example #2
0
 public function actionImage()
 {
     $model = new P3Media('search');
     $model->unsetAttributes();
     $model->attributes = array('mimeType' => 'image');
     if (isset($_GET['P3Media'])) {
         $model->attributes = $_GET['P3Media'];
     }
     $model->dbCriteria->order = "id DESC";
     $this->render('index', array('model' => $model));
 }
Example #3
0
 public function actionAdmin()
 {
     $model = new P3Media('search');
     $scopes = $model->scopes();
     if (isset($scopes[$this->scope])) {
         $model->{$this->scope}();
     }
     $model->unsetAttributes();
     if (isset($_GET['P3Media'])) {
         $model->attributes = $_GET['P3Media'];
     }
     $this->render('admin', array('model' => $model));
 }