Lines Matching defs:array

136      * array/object if the update process can't take place and the browscap.ini
174 * @var array
176 protected $_userAgents = array();
177 protected $_browsers = array();
178 protected $_patterns = array();
179 protected $_properties = array();
183 * An associative array of associative arrays in the format
191 * @var array
193 protected $_streamContextOptions = array();
253 * @param bool $return_array whether return an array or an object
255 * @return stdClass|array the object containing the browsers details. Array if
290 // Return an array if silent mode is active and the ini db doesn't exsist
291 return array();
316 $browser = array();
342 $browser = array(
364 $array = array();
371 $array[$this->_properties[$key]] = $value;
374 return $return_array ? $array : (object) $array;
382 $wrappers = array('http', 'https', 'ftp');
387 $params = array_merge(array(
398 * Add proxy settings to the stream context array.
410 $settings = array($wrapper => array(
420 // Add these new settings to the stream context options array
436 * Clear proxy settings from the stream context options array.
440 * @return array Wrappers cleared
444 $wrappers = isset($wrapper) ? array($wrapper) : array_keys($this->_streamContextOptions);
446 $clearedWrappers = array();
447 $options = array('proxy', 'request_fulluri', 'header');
469 * Returns the array of stream context options.
471 * @return array
523 usort($tmp_user_agents, array($this, 'compareBcStrings'));
528 $tmp_patterns = array();
544 $tmp_patterns[$compressed_pattern] = array('first' => $pattern);
558 $browser = array();
608 $a_len = strlen(str_replace(array('*', '?'), '', $a));
609 $b_len = strlen(str_replace(array('*', '?'), '', $b));
624 * @param array $matches
627 * @return array of $matches
635 $differences = array();
644 $prepared_matches = array();
679 . str_replace(array('\*', '\?', '\\x'), array('.*', '.', '\\\\x'), $pattern)
688 * @param array $matches
696 $search = array('\\' . self::REGEX_DELIMITER, '\\.', '\\\\', '\\+', '\\[', '\\^', '\\]', '\\$', '\\(', '\\)', '\\{', '\\}', '\\=', '\\!', '\\<', '\\>', '\\|', '\\:', '\\-', '.*', '.', '\\?');
697 $replace = array(self::REGEX_DELIMITER, '\\?', '\\', '+', '[', '^', ']', '$', '(', ')', '{', '}', '=', '!', '<', '>', '|', ':', '-', '*', '?', '.');
741 * Parses the array to cache and creates the PHP string to write to disk
873 * Converts the given array to the PHP string which represent it.
878 * @param array $array the array to parse and convert
879 * @return string the array parsed into a PHP string
881 protected function _array2string($array)
883 $strings = array();
885 foreach ($array as $key => $value) {
905 return "array(\n" . implode(",\n", $strings) . "\n)";