/** * Установка значений ввода по умолчанию */ protected function setDefaltInput() { parent::setDefaltInput(); $this->insertValue['alias'] = $this->data['alias']; $this->insertValue['created'] = $this->data['created']; $this->insertValue['lastChange'] = date("Y-m-d h:i:s"); $this->insertValue['name'] = array(); $this->insertValue['description'] = array(); foreach ($this->langArray as $langData) { $this->insertValue['name'][$langData['lang']] = ''; $this->insertValue['description'][$langData['lang']] = ''; } if ($this->categoryLangData != null) { foreach ($this->categoryLangData as $langData) { $this->insertValue['name'][$langData['lang']] = $langData['name']; $this->insertValue['description'][$langData['lang']] = $langData['description']; } } $this->insertValue['list'] = array(); if ($this->categoryListsData != null) { foreach ($this->categoryListsData as $key => $categoriesData) { $this->insertValue['list'][$key] = $categoriesData['list']; } } $this->originalInsertValue = $this->insertValue; }
protected function setDefaltInput() { parent::setDefaltInput(); $this->insertValue['alias'] = $this->data['ip']; $this->insertValue['status'] = $this->data['status']; $this->insertValue['comment'] = $this->data['comment']; $this->originalInsertValue = $this->insertValue; }
protected function setDefaltInput() { parent::setDefaltInput(); $this->insertValue['alias'] = $this->data['id']; $this->insertValue['ip'] = $this->data['ip']; $this->insertValue['fio'] = $this->data['fio']; $this->insertValue['date'] = $this->data['date']; $this->insertValue['phone'] = $this->data['phone']; $this->insertValue['email'] = $this->data['email']; $this->insertValue['title'] = $this->data['title']; $this->insertValue['text'] = $this->data['text']; $this->insertValue['like'] = $this->data['like']; $this->insertValue['dislike'] = $this->data['dislike']; $this->insertValue['parentFeedback'] = $this->feedbackData['parentFeedback']; $this->originalInsertValue = $this->insertValue; }
protected function setDefaltInput() { parent::setDefaltInput(); $this->insertValue['alias'] = $this->data['post']; $this->insertValue['sequence'] = $this->data['sequence']; $this->insertValue['postName'] = array(); foreach ($this->langArray as $langData) { $this->insertValue['postName'][$langData['lang']] = ""; } $this->insertValue['postName'] = array(); foreach ($this->langArray as $langData) { $this->insertValue['postName'][$langData['lang']] = ""; } foreach ($this->postLang as $langData) { $this->insertValue['postName'][$langData['lang']] = $langData['postName']; } $this->originalInsertValue = $this->insertValue; }
protected function setDefaltInput() { parent::setDefaltInput(); $this->insertValue['alias'] = $this->data['type']; $this->insertValue['show'] = $this->data['show']; $this->insertValue['sequence'] = $this->data['sequence']; $this->insertValue['typeName'] = array(); $this->insertValue['topText'] = array(); $this->insertValue['bottomText'] = array(); foreach ($this->langArray as $langData) { $this->insertValue['typeName'][$langData['lang']] = ""; $this->insertValue['topText'][$langData['lang']] = ""; $this->insertValue['bottomText'][$langData['lang']] = ""; } foreach ($this->typeLang as $langData) { $this->insertValue['typeName'][$langData['lang']] = $langData['typeName']; $this->insertValue['topText'][$langData['lang']] = $langData['topText']; $this->insertValue['bottomText'][$langData['lang']] = $langData['bottomText']; } $this->originalInsertValue = $this->insertValue; }
/** * Установка значений ввода по умолчанию */ protected function setDefaltInput() { parent::setDefaltInput(); $this->insertValue['alias'] = $this->data['alias']; $this->insertValue['created'] = $this->data['created']; $this->insertValue['lastChange'] = date("Y-m-d h:i:s"); $this->insertValue['showTitle'] = $this->data['showTitle']; $this->insertValue['showCreated'] = $this->data['showCreated']; $this->insertValue['showChange'] = $this->data['showChange']; $this->insertValue['title'] = array(); $this->insertValue['text'] = array(); foreach ($this->langArray as $langData) { $this->insertValue['title'][$langData['lang']] = ''; $this->insertValue['text'][$langData['lang']] = ''; } foreach ($this->materialLangData as $langData) { $this->insertValue['title'][$langData['lang']] = $langData['title']; $this->insertValue['text'][$langData['lang']] = $langData['text']; } $this->insertValue['categories'] = array(); if ($this->materialCategoriesData != null) { foreach ($this->materialCategoriesData as $key => $categoriesData) { $this->insertValue['categories'][$key] = $categoriesData['category']; } } $this->originalInsertValue = $this->insertValue; }
/** * Установка значений ввода по умолчанию */ protected function setDefaltInput() { parent::setDefaltInput(); $this->insertValue['alias'] = $this->data['name']; $this->insertValue['showFullMaterialsText'] = $this->data['showFullMaterialsText']; $this->insertValue['showShortMaterialsText'] = $this->data['showShortMaterialsText']; $this->insertValue['showCategories'] = $this->data['showCategories']; $this->insertValue['showCreated'] = $this->data['showCreated']; $this->insertValue['showChange'] = $this->data['showChange']; $this->insertValue['categorialsAsURL'] = $this->data['categorialsAsURL']; $this->insertValue['titleAsURL'] = $this->data['titleAsURL']; $this->insertValue['showAllOnPage'] = $this->data['showAllOnPage']; $this->insertValue['onPage'] = $this->data['onPage']; $this->insertValue['maxPages'] = $this->data['maxPages']; $this->insertValue['name'] = array(); $this->insertValue['description'] = array(); foreach ($this->langArray as $langData) { $this->insertValue['name'][$langData['lang']] = ''; $this->insertValue['description'][$langData['lang']] = ''; } foreach ($this->listLangData as $langData) { $this->insertValue['name'][$langData['lang']] = $langData['name']; $this->insertValue['description'][$langData['lang']] = $langData['description']; } $this->insertValue['categories'] = array(); if ($this->listCategoriesData != null) { foreach ($this->listCategoriesData as $key => $categoriesData) { $key = $categoriesData['category']; $this->insertValue['categories'][$key] = $categoriesData['sequence']; } } $this->originalInsertValue = $this->insertValue; }
protected function setDefaltInput() { parent::setDefaltInput(); $this->insertValue['alias'] = $this->data['worker']; $this->insertValue['post'] = $this->data['post']; $this->insertValue['email1'] = $this->data['email1']; $this->insertValue['email2'] = $this->data['email2']; $this->insertValue['phoneText1'] = $this->data['phoneText1']; $this->insertValue['phone1'] = $this->data['phone1']; $this->insertValue['phoneText2'] = $this->data['phoneText2']; $this->insertValue['phone2'] = $this->data['phone2']; $this->insertValue['additional1'] = $this->data['additional1']; $this->insertValue['additional2'] = $this->data['additional2']; $this->insertValue['fio'] = array(); $this->insertValue['info'] = array(); foreach ($this->langArray as $langData) { $this->insertValue['fio'][$langData['lang']] = ""; $this->insertValue['info'][$langData['lang']] = ""; } foreach ($this->workerLang as $langData) { $this->insertValue['fio'][$langData['lang']] = $langData['fio']; $this->insertValue['info'][$langData['lang']] = $langData['info']; } $this->insertValue['units'] = array(); if ($this->unitData != null) { foreach ($this->unitData as $key => $workerData) { $this->insertValue['units'][$key] = $workerData['unit']; } } $this->originalInsertValue = $this->insertValue; }
protected function setDefaltInput() { parent::setDefaltInput(); $this->insertValue['alias'] = $this->data['unit']; $this->insertValue['show'] = $this->data['show']; $this->insertValue['showOnMain'] = $this->data['showOnMain']; $this->insertValue['type'] = $this->data['type']; $this->insertValue['sequence'] = $this->data['sequence']; $this->insertValue['email'] = $this->data['email']; $this->insertValue['feedbackEmail'] = $this->data['feedbackEmail']; $this->insertValue['phoneText1'] = $this->data['phoneText1']; $this->insertValue['phone1'] = $this->data['phone1']; $this->insertValue['phoneText2'] = $this->data['phoneText2']; $this->insertValue['phone2'] = $this->data['phone2']; $this->insertValue['additional1'] = $this->data['additional1']; $this->insertValue['additional2'] = $this->data['additional2']; $this->setDefaltInputDays('mon'); $this->setDefaltInputDays('tue'); $this->setDefaltInputDays('wed'); $this->setDefaltInputDays('thu'); $this->setDefaltInputDays('fri'); $this->setDefaltInputDays('sat'); $this->setDefaltInputDays('sun'); if ($this->map < 0 || $this->map == null) { $this->insertValue['map'] = 'noMap'; $this->insertValue['showMap'] = '0'; } else { $this->insertValue['map'] = $this->map['map']; $this->insertValue['showMap'] = $this->map['show']; } $this->insertValue['name'] = array(); $this->insertValue['adress'] = array(); $this->insertValue['postAdress'] = array(); $this->insertValue['text'] = array(); foreach ($this->langArray as $langData) { $this->insertValue['name'][$langData['lang']] = ""; $this->insertValue['adress'][$langData['lang']] = ""; $this->insertValue['postAdress'][$langData['lang']] = ""; $this->insertValue['text'][$langData['lang']] = ""; } foreach ($this->unitLang as $langData) { $this->insertValue['name'][$langData['lang']] = $langData['name']; $this->insertValue['adress'][$langData['lang']] = $langData['adress']; $this->insertValue['postAdress'][$langData['lang']] = $langData['postAdress']; $this->insertValue['text'][$langData['lang']] = $langData['text']; } $this->insertValue['workers'] = array(); if ($this->workerData != null) { foreach ($this->workerData as $key => $workerData) { $this->insertValue['workers'][$key] = $workerData['worker']; } } $this->originalInsertValue = $this->insertValue; }