Lines Matching full:input

44         global $INPUT;
53 switch ($INPUT->param('news')['do']) {
65 global $INPUT;
74 switch ($INPUT->param('news')['do']) {
95 $payload = json_decode(file_get_contents('php://input'), true);
108 global $INPUT;
109 if (!$INPUT->str('news-id')) {
113 $newsId = $INPUT->str('news-id');
140 global $INPUT;
141 $file = ModelNews::getCacheFileById($INPUT->param('news')['id']);
148 $data[$field] = cleanText($INPUT->str('text'));
150 $data[$field] = $INPUT->param($field);
165 if (+$INPUT->param('news')['id'] === 0) {
167 … $this->saveIntoStreams($this->helper->serviceNews->getMaxId(), $INPUT->param('news')['stream']);
169 $news = $this->helper->serviceNews->getById($INPUT->param('news')['id']);
188 global $INPUT;
189 $file = ModelNews::getCacheFileById($INPUT->param('news')['id']);
193 $stream = $this->helper->serviceStream->findByName($INPUT->param('news')['stream']);
195 …$priority = $this->helper->servicePriority->findByNewsAndStream($INPUT->param('news')['id'], $stre…
196 $data = $INPUT->param('priority');
207 global $INPUT;
208 $stream = $this->helper->serviceStream->findByName($INPUT->param('news')['stream']);
209 …$priority = $this->helper->servicePriority->findByNewsAndStream($INPUT->param('news')['id'], $stre…
216 global $INPUT;
217 if (!$INPUT->param('news')['id']) {
225 $f = ModelNews::getCacheFileById($INPUT->param('news')['id']);
234 global $INPUT;
235 if ($INPUT->param('news')['stream']) {
236 …echo p_render('xhtml', p_get_instructions('{{news-stream>feed="5";stream="' . $INPUT->param('news'…
243 global $INPUT;
248 if ($INPUT->param('news')['id'] !== 0) {
249 $data = $this->helper->serviceNews->getById($INPUT->param('news')['id']);
256 $form->setHiddenField('news[id]', $INPUT->param('news')['id']);
258 $form->setHiddenField('news[stream]', $INPUT->param('news')['stream']);
262 $input = null;
267 $input = $form->addTextarea('text', $this->getLang($field), -1)->attrs([
271 $input->val($data->text);
274 $input = new DateTimeInputElement($field, $this->getLang($field));
275 $input->attr('class', 'form-control');
276 $input->setStep(1);
277 $form->addElement($input);
278 $input->val($data->newsDate ?: 'now');
281 …$input = $form->addDropdown('category', static::$categories, $this->getLang($field))->attr('class'…
282 $input->val($data->category);
285 … $input = $form->addTextInput($field, $this->getLang($field))->attr('class', 'form-control');
286 $input->val($data->image);
289 $input = $form->addTextInput($field, $this->getLang($field))->attrs([
292 $input->val($data->linkHref);
295 $input = $form->addTextInput($field, $this->getLang($field))->attrs([
298 $input->val($data->linkTitle);
301 $input = $form->addTextInput($field, $this->getLang($field))->attrs([
306 $input->val($data->authorName);
309 $input = new InputElement('email', $field, $this->getLang($field));
310 $input->attr('class', 'form-control');
311 $form->addElement($input);
312 $input->val($data->authorEmail);
315 $input = $form->addTextInput($field, $this->getLang($field))->attrs([
320 $input->val($data->title);
323 msg('Not implement input field ' . $field, -1);