예제 #1
0
 public function nohooks__set_params($hook_object, $params)
 {
     $paramnames = $this->pageset_paramnames();
     if (!isset($params['_pageset'])) {
         $params['_pageset'] = array();
     }
     foreach ($paramnames as $paramname) {
         if (isset($params[$paramname])) {
             if (!isset($params['_pageset'][$paramname])) {
                 $params['_pageset'][$paramname] = $params[$paramname];
             }
             unset($params[$paramname]);
         }
         if (isset($this->{$paramname}) && !isset($params['_pageset'][$paramname])) {
             $params['_pageset'][$paramname] = $this->{$paramname};
         }
     }
     return parent::nohooks__set_params($hook_object, $params);
 }
예제 #2
0
 public function nohooks__set_params($hook_object, $params)
 {
     $generatorname = $this->queryname();
     $paramnames = $this->generator_paramnames();
     if (!isset($params['_generator'])) {
         $params['_generator'] = array();
     }
     if (!isset($params['_generator'][$generatorname])) {
         $params['_generator'][$generatorname] = array();
     }
     foreach ($paramnames as $paramname) {
         if (isset($params[$paramname])) {
             if (!isset($params['_generator'][$generatorname][$paramname])) {
                 $params['_generator'][$generatorname][$paramname] = $params[$paramname];
             }
             unset($params[$paramname]);
         }
         if (isset($this->{$paramname}) && !isset($params['_generator'][$generatorname][$paramname])) {
             $params['_generator'][$generatorname][$paramname] = $this->{$paramname};
         }
     }
     return parent::nohooks__set_params($hook_object, $params);
 }