creating an entry.
This commit is contained in:
parent
ec44b81f6a
commit
634eb40a0c
3 changed files with 32 additions and 2 deletions
|
@ -9,6 +9,7 @@ class PlayouthistoryController extends Zend_Controller_Action
|
||||||
->addActionContext('aggregate-history-feed', 'json')
|
->addActionContext('aggregate-history-feed', 'json')
|
||||||
->addActionContext('item-history-feed', 'json')
|
->addActionContext('item-history-feed', 'json')
|
||||||
->addActionContext('edit-aggregate-item', 'json')
|
->addActionContext('edit-aggregate-item', 'json')
|
||||||
|
->addActionContext('create-list-item', 'json')
|
||||||
->addActionContext('edit-list-item', 'json')
|
->addActionContext('edit-list-item', 'json')
|
||||||
->addActionContext('update-aggregate-item', 'json')
|
->addActionContext('update-aggregate-item', 'json')
|
||||||
->initContext();
|
->initContext();
|
||||||
|
@ -118,6 +119,16 @@ class PlayouthistoryController extends Zend_Controller_Action
|
||||||
unset($this->view->form);
|
unset($this->view->form);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function createListItemAction()
|
||||||
|
{
|
||||||
|
$request = $this->getRequest();
|
||||||
|
$params = $request->getPost();
|
||||||
|
Logging::info($params);
|
||||||
|
|
||||||
|
$historyService = new Application_Service_HistoryService();
|
||||||
|
$historyService->createPlayedItem($params);
|
||||||
|
}
|
||||||
|
|
||||||
public function editListItemAction()
|
public function editListItemAction()
|
||||||
{
|
{
|
||||||
$file_id = $this->_getParam('id');
|
$file_id = $this->_getParam('id');
|
||||||
|
|
|
@ -4,5 +4,20 @@ class Application_Form_EditHistoryItem extends Zend_Form
|
||||||
{
|
{
|
||||||
public function init() {
|
public function init() {
|
||||||
|
|
||||||
|
$file_id = new Zend_Form_Element_Hidden('his_file_id');
|
||||||
|
$file_id->setValidators(array(
|
||||||
|
new Zend_Validate_Int()
|
||||||
|
));
|
||||||
|
$this->addElement($file_id);
|
||||||
|
|
||||||
|
|
||||||
|
/* Title form element */
|
||||||
|
$title = new Zend_Form_Element_Text('his_file_title');
|
||||||
|
$title->setLabel(_('Title:'));
|
||||||
|
$title->setAttrib('class', 'input_text');
|
||||||
|
$title->addFilter('StringTrim');
|
||||||
|
//$title->setDecorators(array('viewHelper'));
|
||||||
|
$this->addElement($title);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -175,10 +175,14 @@ class Application_Service_HistoryService
|
||||||
return $form;
|
return $form;
|
||||||
}
|
}
|
||||||
catch (Exception $e) {
|
catch (Exception $e) {
|
||||||
Logging::debug($e);
|
Logging::info($e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function createPlayedItem() {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
/* id is an id in cc_playout_history */
|
/* id is an id in cc_playout_history */
|
||||||
public function editPlayedItem($id) {
|
public function editPlayedItem($id) {
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue