Частичная синхронизация с CMS

This commit is contained in:
origami11 2017-02-17 16:22:44 +03:00
parent 312f18a20a
commit b26e521657
62 changed files with 827 additions and 5992 deletions

View file

@ -0,0 +1,16 @@
<?php
class Controller_Request {
function __construct($request, $id) {
$this->r = $request;
$this->id = $id;
}
function get($name) {
$v = $this->r->get($name);
if ($id && is_array($v)) {
return isset($v[$id]) ? $v[$id] : $def;
}
return $v;
}
}