| @@ 61-72 (lines=12) @@ | ||
| 58 | * |
|
| 59 | * The operations are done on all available schemas within the DB. |
|
| 60 | */ |
|
| 61 | private function _load_schemadb() |
|
| 62 | { |
|
| 63 | $this->_schemadb =& $this->_request_data['schemadb']; |
|
| 64 | if ( $this->_config->get('simple_name_handling') |
|
| 65 | && ! midcom::get()->auth->admin) |
|
| 66 | { |
|
| 67 | foreach (array_keys($this->_schemadb) as $name) |
|
| 68 | { |
|
| 69 | $this->_schemadb[$name]->fields['name']['readonly'] = true; |
|
| 70 | } |
|
| 71 | } |
|
| 72 | } |
|
| 73 | ||
| 74 | /** |
|
| 75 | * Internal helper, loads the controller for the current article. Any error triggers a 500. |
|
| @@ 62-74 (lines=13) @@ | ||
| 59 | * |
|
| 60 | * The operations are done on all available schemas within the DB. |
|
| 61 | */ |
|
| 62 | public function load_schemadb() |
|
| 63 | { |
|
| 64 | $this->_schemadb =& $this->_request_data['schemadb']; |
|
| 65 | if ( $this->_config->get('simple_name_handling') |
|
| 66 | && !midcom::get()->auth->can_user_do('midcom:urlname')) |
|
| 67 | { |
|
| 68 | foreach (array_keys($this->_schemadb) as $name) |
|
| 69 | { |
|
| 70 | $this->_schemadb[$name]->fields['name']['readonly'] = true; |
|
| 71 | } |
|
| 72 | } |
|
| 73 | return $this->_schemadb; |
|
| 74 | } |
|
| 75 | ||
| 76 | public function get_schema_name() |
|
| 77 | { |
|
| @@ 54-65 (lines=12) @@ | ||
| 51 | * |
|
| 52 | * The operations are done on all available schemas within the DB. |
|
| 53 | */ |
|
| 54 | private function _load_schemadb() |
|
| 55 | { |
|
| 56 | $this->_schemadb =& $this->_request_data['schemadb']; |
|
| 57 | if ( $this->_config->get('simple_name_handling') |
|
| 58 | && ! midcom::get()->auth->admin) |
|
| 59 | { |
|
| 60 | foreach (array_keys($this->_schemadb) as $name) |
|
| 61 | { |
|
| 62 | $this->_schemadb[$name]->fields['name']['readonly'] = true; |
|
| 63 | } |
|
| 64 | } |
|
| 65 | } |
|
| 66 | ||
| 67 | /** |
|
| 68 | * Internal helper, loads the controller for the current article. Any error triggers a 500. |
|
| @@ 69-80 (lines=12) @@ | ||
| 66 | * |
|
| 67 | * The operations are done on all available schemas within the DB. |
|
| 68 | */ |
|
| 69 | public function load_schemadb() |
|
| 70 | { |
|
| 71 | $this->_schemadb = $this->_request_data['schemadb']; |
|
| 72 | if ($this->_config->get('simple_name_handling')) |
|
| 73 | { |
|
| 74 | foreach (array_keys($this->_schemadb) as $name) |
|
| 75 | { |
|
| 76 | $this->_schemadb[$name]->fields['name']['hidden'] = true; |
|
| 77 | } |
|
| 78 | } |
|
| 79 | return $this->_schemadb; |
|
| 80 | } |
|
| 81 | ||
| 82 | public function get_schema_name() |
|
| 83 | { |
|