예제 #1
0
 public function testAction()
 {
     $report = new PimTools_ImportReport();
     $report->setAction('unpublish');
     $report->setImportDate(Zend_Date::now()->get());
     $report->setType("Test");
     $report->save();
     die("meins");
 }
예제 #2
0
 /**
  * @return array
  */
 public function load()
 {
     $objects = array();
     $objectIds = $this->db->fetchCol("SELECT id FROM " . PimTools_ImportReport_Resource::TABLE_NAME . $this->getCondition() . $this->getOrder() . $this->getOffsetLimit());
     foreach ($objectIds as $id) {
         $objects[] = PimTools_ImportReport::getById($id);
     }
     $this->model->setObjects($objects);
     return $objects;
 }
예제 #3
0
 public function typesJsonAction()
 {
     $types[] = array("key" => "-1", "value" => "");
     foreach (PimTools_ImportReport::getTypes() as $type) {
         $types[] = array("key" => $type, "value" => $type);
     }
     $this->_helper->json(array("types" => $types));
 }