public function __construct($modelClassName, $modelAttributeName) { assert($modelClassName == "User"); // Not Coding Standard parent::__construct($modelClassName, $modelAttributeName); $this->statusData = UserStatusUtil::getStatusArray(); }
/** * Renders the editable dropdown content. * @return A string containing the element's content. */ protected function renderControlEditable() { $this->assertModelIsValid(); $dropDownArray = UserStatusUtil::getStatusArray(); $value = UserStatusUtil::getSelectedValueByUser($this->getUserModel()); $htmlOptions = array('id' => $this->getEditableInputId('userStatus')); $content = ZurmoHtml::dropDownList($this->getEditableInputName('userStatus'), $value, $dropDownArray, $htmlOptions); $content = ZurmoHtml::tag('div', array('class' => 'beforeToolTip'), $content); $content .= self::renderTooltipContent(); return $content; }