Example #1
0
 public function __construct($options = null)
 {
     $oModelImageGallery = new Admin_Model_ImageGallery();
     $oModelImageSlider = new Admin_Model_ImageSlider();
     $aAllGallery = $oModelImageGallery->getAll();
     $this->_aAllGallery["gallery_0"] = "-";
     foreach ($aAllGallery as $nKey => $aValue) {
         $this->_aAllGallery["gallery_" . $aValue["id"]] = $aValue["name"];
     }
     $aAllSlider = $oModelImageSlider->getAll();
     $this->_aAllSlider["slider_0"] = "-";
     foreach ($aAllSlider as $nKey => $aValue) {
         $this->_aAllSlider["slider_" . $aValue["id"]] = $aValue["name"];
     }
     parent::__construct($options);
 }
Example #2
0
 public function __construct($options = null)
 {
     $this->_aAllLang = array("lang_pl" => "język polski", "lang_en" => "język angielski");
     $oModelImage = new Admin_Model_Image();
     $oModelImageGallery = new Admin_Model_ImageGallery();
     $aImage = $oModelImage->getAll()->toArray();
     $this->_aAllImage[0] = "-";
     foreach ($aImage as $nKey => $aValue) {
         $this->_aAllImage[$aValue["id"]] = $aValue["user_name"];
     }
     $aGallery = $oModelImageGallery->getAll()->toArray();
     $this->_aAllGallery[0] = "-";
     foreach ($aGallery as $nKey => $aValue) {
         $this->_aAllGallery[$aValue["id"]] = $aValue["name"];
     }
     parent::__construct($options);
 }