Esempio n. 1
0
 public function __construct($options = null)
 {
     $oModelOrderFile = new User_Model_OrderFile();
     $oModelOrderFile->getAll();
     $this->_aAllOrderFile[0] = "-";
     $aAllOrderFile = $oModelOrderFile->getNotExists();
     if (count($aAllOrderFile)) {
         foreach ($aAllOrderFile as $aValue) {
             $this->_aAllOrderFile[$aValue["id"]] = $aValue["user_name"];
         }
     }
     parent::__construct($options);
 }
 public function getscannedfileslistAction()
 {
     $this->_helper->viewRenderer->setNoRender();
     $this->_helper->getHelper("layout")->disableLayout();
     $aJson = null;
     $oModelOrderFile = new User_Model_OrderFile();
     if ($this->_request->isPost()) {
         $aAllOrderFile = array();
         $aAllOrderFile[0] = "-";
         $aTempAllOrderFile = $oModelOrderFile->getNotExists();
         if (count($aTempAllOrderFile)) {
             foreach ($aTempAllOrderFile as $aValue) {
                 $aAllOrderFile[$aValue["id"]] = $aValue["user_name"];
             }
         }
         $aJson = $aAllOrderFile;
     }
     header("Content-type: application/json");
     echo Zend_Json::encode($aJson);
     exit;
 }