Example #1
0
 /**
  * @param WS_ServiceInterface $application
  * @param array               $map
  * @param string              $default_template
  */
 public function __construct(WS_ServiceInterface $application, array $map, $default_template = 'status', $disabled = false)
 {
     parent::__construct($application);
     $this->default_template = $default_template;
     $this->map = $map;
     $this->disabled = $disabled;
 }
Example #2
0
File: REST.php Project: techart/tao
 /**
  * @param array  $mappings
  * @param string $default
  */
 public function __construct($application = null, array $mappings = array(), $default = null)
 {
     parent::__construct($application);
     $this->mappings($mappings);
     if ($default) {
         $this->map('default', $default);
     }
 }
Example #3
0
File: PDF.php Project: techart/tao
 /**
  * Конструктор
  *
  * @param WS_ServiceInterface $application
  */
 public function __construct(WS_ServiceInterface $application, $title = null, $clear_url = true, $patterns = null, $options = array())
 {
     parent::__construct($application);
     if (is_array($patterns)) {
         $this->patterns = $patterns;
     }
     if (!empty($title)) {
         $this->title = $title;
     }
     $this->clear_url = $clear_url;
     $this->options = $options;
 }
Example #4
0
 /**
  * Конструктор
  *
  * @param WS_ServiceInterface $application
  * @param string              $dsn
  * @param array()             $urls
  */
 public function __construct(WS_ServiceInterface $application)
 {
     parent::__construct($application);
     $args = func_get_args();
     foreach (array_slice($args, 1) as $arg) {
         switch (true) {
             case is_bool($arg):
                 $this->tagged = $arg;
                 break;
             case is_array($arg):
                 $this->urls = $arg;
                 break;
             case is_int($arg):
                 $this->timeout = $arg;
                 break;
             case is_string($arg):
                 $this->dsn = $arg;
                 break;
         }
     }
 }
Example #5
0
 /**
  * Конструктор
  *
  * @param WS_ServiceInterface $application
  * @param                     $path
  */
 public function __construct(WS_ServiceInterface $application, $path)
 {
     parent::__construct($application);
     $this->path = (string) $path;
 }
Example #6
0
 /**
  * @param WS_ServiceInterface $application
  * @param Log_Level           $Log_level
  */
 public function __construct(WS_ServiceInterface $application, $log_level = 0)
 {
     $this->log_level = $log_level;
     parent::__construct($application);
 }
Example #7
0
File: Auth.php Project: techart/tao
 /**
  * @param WS_ServiceInterface         $application
  * @param WS_Auth_AuthModuleInterface $auth_module
  */
 public function __construct(WS_ServiceInterface $application, WS_Auth_AuthModuleInterface $auth_module)
 {
     parent::__construct($application);
     $this->auth_module = $auth_module;
 }
Example #8
0
 /**
  * Конструктор
  *
  * @param WS_ServiceInterface $application
  */
 public function __construct(WS_ServiceInterface $application)
 {
     $args = func_get_args();
     parent::__construct(array_shift($args));
     $this->args = Core::normalize_args($args);
 }
Example #9
0
 /**
  * Конструктор
  *
  * @param WS_ServiceInterface $application
  * @param OpenId_Client       $client
  */
 public function __construct(WS_ServiceInterface $application, $client)
 {
     parent::__construct($application);
     $this->client = $client;
 }
Example #10
0
 /**
  * Конструктор
  *
  * @param WS_ServiceInterface $application
  * @param array               $values
  * @param boolean             $spawn
  */
 public function __construct(WS_ServiceInterface $application, array $values, $spawn = false)
 {
     parent::__construct($application);
     $this->values = $values;
     $this->spawn = $spawn;
 }
Example #11
0
File: DB.php Project: techart/tao
 /**
  * Конструктор
  *
  * @param WS_ServiceInterface $application
  * @param string              $dsn
  */
 public function __construct(WS_ServiceInterface $application, $dsn = '')
 {
     parent::__construct($application);
     $this->dsn = $dsn;
 }
Example #12
0
 /**
  * @param WebKit_AbstractHandler $application
  */
 public function __construct(WS_ServiceInterface $application)
 {
     parent::__construct($application);
 }