Поправил определение название модуля
This commit is contained in:
parent
04662a94df
commit
40f40a8d6d
3 changed files with 22 additions and 22 deletions
|
|
@ -219,11 +219,8 @@ class Action
|
||||||
$url = new Url();
|
$url = new Url();
|
||||||
|
|
||||||
if ($access == null || $access->checkAction($name)) {
|
if ($access == null || $access->checkAction($name)) {
|
||||||
$param = array_merge(array(
|
$moduleName = explode("\\", strtolower(get_class($this)), 2);
|
||||||
'module' => strtr($this->modulePrefix . strtolower(get_class($this)), array('module_' => '')),
|
$param = array_merge(array('module' => $this->modulePrefix . $moduleName[1], "action" => $name), $param);
|
||||||
"action" => $name
|
|
||||||
|
|
||||||
), $param);
|
|
||||||
|
|
||||||
$url->setParent($this->part);
|
$url->setParent($this->part);
|
||||||
$url->setQuery($param);
|
$url->setQuery($param);
|
||||||
|
|
|
||||||
6
src/Form/BrowserInput.php
Normal file
6
src/Form/BrowserInput.php
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
<?php
|
||||||
|
namespace ctiso\Form;
|
||||||
|
use ctiso\Form\Input;
|
||||||
|
|
||||||
|
class BrowserInput extends Input {
|
||||||
|
}
|
||||||
|
|
@ -50,9 +50,6 @@ class THidden extends Input {
|
||||||
public $hidden = true;
|
public $hidden = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
class TComponentBrowserInput extends Input {
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Форма для ввода
|
* Форма для ввода
|
||||||
*/
|
*/
|
||||||
|
|
@ -77,30 +74,30 @@ class Form extends View {
|
||||||
public function __construct()
|
public function __construct()
|
||||||
{
|
{
|
||||||
$this->constructor = array(
|
$this->constructor = array(
|
||||||
'input' => 'Form_Input',
|
'input' => 'ctiso\\Form\\Input',
|
||||||
'inputreq' => 'Form_Input', // input с проверкой на заполненность
|
'inputreq' => 'ctiso\\Form\\Input', // input с проверкой на заполненность
|
||||||
|
|
||||||
'date' => 'Form_Date',
|
'date' => 'ctiso\\Form\\Date',
|
||||||
'datereq' => 'Form_Date',
|
'datereq' => 'ctiso\\Form\\Date',
|
||||||
'datetime' => 'TDateTime',
|
'datetime' => 'TDateTime',
|
||||||
|
|
||||||
'color' => 'Form_Color',
|
'color' => 'ctiso\\Form\\Color',
|
||||||
'textarea' => 'Form_TextArea',
|
'textarea' => 'ctiso\\Form\\TextArea',
|
||||||
'text' => 'Form_TextArea',
|
'text' => 'ctiso\\Form\\TextArea',
|
||||||
'multiselect' => 'Form_SelectMany',
|
'multiselect' => 'ctiso\\Form\\SelectMany',
|
||||||
// 'selectmany' => 'TSelectMany',
|
// 'selectmany' => 'TSelectMany',
|
||||||
'select1' => 'Form_SelectOne',
|
'select1' => 'ctiso\\Form\\SelectOne',
|
||||||
'select' => 'Form_SelectOne',
|
'select' => 'ctiso\\Form\\SelectOne',
|
||||||
'questiontype'=> 'TQuestionType',
|
'questiontype'=> 'TQuestionType',
|
||||||
'secret' => 'TSecret',
|
'secret' => 'TSecret',
|
||||||
'upload' => 'TUpload',
|
'upload' => 'TUpload',
|
||||||
'image' => 'TUpload',
|
'image' => 'TUpload',
|
||||||
'checkbox' => 'TCheckbox',
|
'checkbox' => 'TCheckbox',
|
||||||
'checkmany' => 'Form_SelectMany',
|
'checkmany' => 'ctiso\\Form\\SelectMany',
|
||||||
'hidden' => 'THidden',
|
'hidden' => 'THidden',
|
||||||
'radio' => 'Form_SelectOne',
|
'radio' => 'ctiso\\Form\\SelectOne',
|
||||||
'filebrowser' => 'TComponentBrowserInput',
|
'filebrowser' => 'ctiso\\Form\\BrowserInput',
|
||||||
'documents' => 'TComponentBrowserInput',
|
'documents' => 'ctiso\\Form\\BrowserInput',
|
||||||
);
|
);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue