public function __construct(array $items, $nativeType = NULL) { $this->_items = $items; $this->_nativeType = $nativeType; // ROW() has no base item type, so pass null to parent::__construct(). parent::__construct(NULL); }
/** * Inits some functions. * */ protected function _init() { if (!self::$_substr) { self::$_substr = function_exists('mb_orig_substr') ? 'mb_orig_substr' : 'substr'; } if (!self::$_strlen) { self::$_strlen = function_exists('mb_orig_strlen') ? 'mb_orig_strlen' : 'strlen'; } }