/** * @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; }
/** * @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); } }
/** * Конструктор * * @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; }
/** * Конструктор * * @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; } } }
/** * Конструктор * * @param WS_ServiceInterface $application * @param $path */ public function __construct(WS_ServiceInterface $application, $path) { parent::__construct($application); $this->path = (string) $path; }
/** * @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); }
/** * @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; }
/** * Конструктор * * @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); }
/** * Конструктор * * @param WS_ServiceInterface $application * @param OpenId_Client $client */ public function __construct(WS_ServiceInterface $application, $client) { parent::__construct($application); $this->client = $client; }
/** * Конструктор * * @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; }
/** * Конструктор * * @param WS_ServiceInterface $application * @param string $dsn */ public function __construct(WS_ServiceInterface $application, $dsn = '') { parent::__construct($application); $this->dsn = $dsn; }
/** * @param WebKit_AbstractHandler $application */ public function __construct(WS_ServiceInterface $application) { parent::__construct($application); }