public function testAction() { $report = new PimTools_ImportReport(); $report->setAction('unpublish'); $report->setImportDate(Zend_Date::now()->get()); $report->setType("Test"); $report->save(); die("meins"); }
/** * @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; }
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)); }