This commit is contained in:
Naomi 2013-07-30 19:25:06 -04:00
parent 7ca3048f36
commit a170ee7308
2 changed files with 48 additions and 48 deletions

View file

@ -301,9 +301,9 @@ USING (history_id)
}
}
if (count($md) > 0) {
if (count($md) > 0) {
$f = Application_Model_StoredFile::createWithFile($file, $this->con);
$f->setDbColMetadata($md);
$f->setDbColMetadata($md);
}
foreach ($metadata as $key => $val) {
@ -498,7 +498,7 @@ USING (history_id)
private function loadTemplate($id) {
try {
try {
$template = CcPlayoutHistoryTemplateQuery::create()->findPk($id, $this->con);
$c = new Criteria();
@ -520,10 +520,10 @@ USING (history_id)
$data["name"] = $template->getDbName();
$data["fields"] = $fields;
return $data;
}
catch (Exception $e) {
throw $e;
return $data;
}
catch (Exception $e) {
throw $e;
}
}
@ -544,7 +544,7 @@ USING (history_id)
public function getListItemTemplates() {
$list = array();
try {
$templates = CcPlayoutHistoryTemplateQuery::create()
@ -556,28 +556,28 @@ USING (history_id)
}
return $list;
}
catch (Exception $e) {
throw $e;
}
catch (Exception $e) {
throw $e;
}
}
public function getConfiguredItemTemplate() {
try {
public function getConfiguredItemTemplate() {
try {
$id = Application_Model_Preference::GetHistoryItemTemplate();
return $this->getItemTemplate($id);
}
catch (Exception $e) {
throw $e;
}
return $this->getItemTemplate($id);
}
catch (Exception $e) {
throw $e;
}
}
public function setConfiguredItemTemplate($id) {
try {
Application_Model_Preference::SetHistoryItemTemplate($id);
}
catch (Exception $e) {
throw $e;
catch (Exception $e) {
throw $e;
}
}
@ -615,9 +615,9 @@ USING (history_id)
$this->con->commit();
}
catch (Exception $e) {
$this->con->rollback();
throw $e;
catch (Exception $e) {
$this->con->rollback();
throw $e;
}
}