public function read($input)
 {
     $xfer = 0;
     $fname = null;
     $ftype = 0;
     $fid = 0;
     $xfer += $input->readStructBegin($fname);
     while (true) {
         $xfer += $input->readFieldBegin($fname, $ftype, $fid);
         if ($ftype == TType::STOP) {
             break;
         }
         switch ($fid) {
             case 0:
                 if ($ftype == TType::LST) {
                     $this->success = array();
                     $_size14 = 0;
                     $_etype17 = 0;
                     $xfer += $input->readListBegin($_etype17, $_size14);
                     for ($_i18 = 0; $_i18 < $_size14; ++$_i18) {
                         $elem19 = null;
                         $elem19 = new FileStatus();
                         $xfer += $elem19->read($input);
                         $this->success[] = $elem19;
                     }
                     $xfer += $input->readListEnd();
                 } else {
                     $xfer += $input->skip($ftype);
                 }
                 break;
             case 1:
                 if ($ftype == TType::STRUCT) {
                     $this->ouch = new ThriftIOException();
                     $xfer += $this->ouch->read($input);
                 } else {
                     $xfer += $input->skip($ftype);
                 }
                 break;
             default:
                 $xfer += $input->skip($ftype);
                 break;
         }
         $xfer += $input->readFieldEnd();
     }
     $xfer += $input->readStructEnd();
     return $xfer;
 }
 public function __construct($vals = null)
 {
     if (!isset(self::$_TSPEC)) {
         self::$_TSPEC = array(1 => array('var' => 'path', 'type' => TType::STRING), 2 => array('var' => 'length', 'type' => TType::I64), 3 => array('var' => 'isdir', 'type' => TType::BOOL), 4 => array('var' => 'block_replication', 'type' => TType::I16), 5 => array('var' => 'blocksize', 'type' => TType::I64), 6 => array('var' => 'modification_time', 'type' => TType::I64), 7 => array('var' => 'permission', 'type' => TType::STRING), 8 => array('var' => 'owner', 'type' => TType::STRING), 9 => array('var' => 'group', 'type' => TType::STRING));
     }
     if (is_array($vals)) {
         if (isset($vals['path'])) {
             $this->path = $vals['path'];
         }
         if (isset($vals['length'])) {
             $this->length = $vals['length'];
         }
         if (isset($vals['isdir'])) {
             $this->isdir = $vals['isdir'];
         }
         if (isset($vals['block_replication'])) {
             $this->block_replication = $vals['block_replication'];
         }
         if (isset($vals['blocksize'])) {
             $this->blocksize = $vals['blocksize'];
         }
         if (isset($vals['modification_time'])) {
             $this->modification_time = $vals['modification_time'];
         }
         if (isset($vals['permission'])) {
             $this->permission = $vals['permission'];
         }
         if (isset($vals['owner'])) {
             $this->owner = $vals['owner'];
         }
         if (isset($vals['group'])) {
             $this->group = $vals['group'];
         }
     }
 }
 public function actionGeneratePdf()
 {
     $this->layout = 'pdf';
     $model = new FileStatus('search');
     if (isset($_GET['FileStatus'])) {
         $model->attributes = $_GET['FileStatus'];
     }
     // to execute the filters (if is the case)
     $dataProvider = $model->search();
     $dataProvider->pagination = false;
     $mPDF1 = Yii::app()->ePdf->mpdf();
     # You can easily override default constructor's params
     $mPDF1 = Yii::app()->ePdf->mpdf('', 'A5');
     # renderPartial (only 'view' of current controller)
     $mPDF1->WriteHTML($this->renderPartial('admin', array('model' => $model), true));
     # Outputs ready PDF
     $mPDF1->Output();
 }