/** * Enter description here... * * @param Context $context * @param string $name * @param bool $breakline * @param bool $canhide * @param string $caption * @return XmlInputGroup */ public function __construct($context, $name = "", $breakline = false, $canhide = false, $caption = "") { if (!$context instanceof Context) { throw new InvalidArgumentException("Class XmlInputGroup must have a value Xmlnuke Context"); } $this->_context = $context; if ($name == "") { $this->_name = "ING" . $this->_context->getRandomNumber(100000); } else { $this->_name = $name; } $this->_canhide = $canhide; $this->_breakline = $breakline; $this->_caption = $caption; }
/** *@desc XmlFormCollection construction *@param Context $context *@param string $action *@param string $title */ public function __construct($context, $action, $title) { parent::__construct(); $this->_context = $context; $this->_action = $action; $this->_title = $title; $this->_formname = "frm" . $this->_context->getRandomNumber(10000); $this->_jsValidate = true; $this->_decimalSeparator = $this->_context->Language()->getDecimalPoint(); $this->_dateformat = $this->_context->Language()->getDateFormat(); }
/** *@desc XmlEditList constructor *@param Context $context *@param string $title *@param string $module *@param bool $newButton *@param bool $view *@param bool $edit *@param bool $delete */ public function __construct($context, $title, $module, $newButton = true, $view = true, $edit = true, $delete = true) { $this->_context = $context; $this->_module = $module; $this->_title = $title; $this->_new = $newButton; $this->_view = $view; $this->_edit = $edit; $this->_delete = $delete; $this->_readonly = false; $this->_selecttype = SelectType::RADIO; $this->_customButton = array(); $this->_name = "EL" . $this->_context->getRandomNumber(100000); $this->_extraParam = array(); $this->_curPage = $this->_context->get("curpage"); $this->_qtdRows = $this->_context->get("offset"); $this->_enablePages = $this->_qtdRows > 0 && $this->_curPage > 0; }