本文整理汇总了PHP中Default_Model_Menu::getMenuArrayActivityLogReport方法的典型用法代码示例。如果您正苦于以下问题:PHP Default_Model_Menu::getMenuArrayActivityLogReport方法的具体用法?PHP Default_Model_Menu::getMenuArrayActivityLogReport怎么用?PHP Default_Model_Menu::getMenuArrayActivityLogReport使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Default_Model_Menu
的用法示例。
在下文中一共展示了Default_Model_Menu::getMenuArrayActivityLogReport方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: init
public function init()
{
$this->setMethod('post');
$this->setAttrib('action', BASE_URL . 'reports/activitylogreport');
$this->setAttrib('id', 'activitylog');
$this->setAttrib('name', 'activitylog');
$username = new Zend_Form_Element_Text('username');
$username->setAttrib('onblur', 'clearautoactivity(this)');
$username->addFilter(new Zend_Filter_StringTrim());
$username->setLabel("User Name");
$menu = new Zend_Form_Element_Select('menu');
$menu->setLabel('Menu');
$menu->setAttrib('onchange', 'changeelement(this)');
$menuModel = new Default_Model_Menu();
$menuList = $menuModel->getMenuArrayActivityLogReport();
$menu->addMultiOption('', 'Select Menu');
foreach ($menuList as $menuitem) {
$menu->addMultiOption($menuitem['id'], $menuitem['menuName']);
}
$useraction = new Zend_Form_Element_Select('useraction');
$useraction->setLabel('User Action');
$useraction->setAttrib('onchange', 'changeelement(this)');
$useraction->addMultiOption('', 'Select Action');
$useraction->addMultiOption('1', 'Add');
$useraction->addMultiOption('5', 'Cancel');
$useraction->addMultiOption('3', 'Delete');
$useraction->addMultiOption('2', 'Edit');
$modifieddate = new ZendX_JQuery_Form_Element_DatePicker('modifieddate');
$modifieddate->setAttrib('onblur', 'blurelement(this)');
$modifieddate->setLabel("Modified Date");
$modifieddate->setAttrib('readonly', 'true');
$modifieddate->setAttrib('onfocus', 'this.blur()');
$modifieddate->setOptions(array('class' => 'brdr_none'));
$this->addElements(array($username, $menu, $useraction, $modifieddate));
$this->setElementDecorators(array('ViewHelper'));
$this->setElementDecorators(array('UiWidgetElement'), array('modifieddate'));
}