Example #1
0
 /**
  * @see Requestable
  */
 public function RequestHandle()
 {
     if (isset($_REQUEST[$this->id . '_q'])) {
         $allchild = $this->getChildComponents(true);
         foreach ($allchild as $component) {
             if ($component instanceof SubmitDataRequest) {
                 //проверяем что элемент не находится в невидимой панели
                 if ($this->checkInvisibleOwner($component) == false) {
                     $component->getRequestData();
                 }
             }
         }
         $this->OnSubmit();
     }
     parent::RequestHandle();
 }
Example #2
0
 public function RenderImpl()
 {
     parent::RenderImpl();
 }
Example #3
0
 /**
  * Конструктор
  * @param  ID компонента
  * @param  Zippy\Interfaces\DataSource Источник данных
  */
 public function __construct($id, $DataSource)
 {
     HtmlContainer::__construct($id);
     $this->DataSource = $DataSource;
     $this->pagesize = 100;
 }
Example #4
0
 /**
  * Вызывается   из  WebApplication при обработке  HTTP запроса
  *
  * @param array  Запрос  ввиде массива  элементов
  * @see WebApplication
  */
 public function RequestHandle()
 {
     $this->beforeRequest();
     parent::RequestHandle();
     $this->afterRequest();
 }
Example #5
0
 /**
  * Получить  дочерний   компонент
  *
  * @param string  ID компонента
  * @param  boolean Если  false  - искать  только непосредственнно  вложенных
  */
 public function getComponent($id, $desc = true)
 {
     $c = parent::getComponent($id, $desc);
     if ($c instanceof HtmlComponent) {
         return $c;
     }
     $id = $id . '_' . $this->number;
     return parent::getComponent($id, $desc);
 }