case example


        _deprecated_function( __METHOD__, '5.3.0', 'The PHP native JSON extension' );

        // oh please oh please oh please oh please oh please         if($this->_mb_convert_encoding) {
            return mb_convert_encoding($utf16, 'UTF-8', 'UTF-16');
        }

        $bytes = (ord($utf16[0]) << 8) | ord($utf16[1]);

        switch(true) {
            case ((0x7F & $bytes) == $bytes):
                // this case should never be reached, because we are in ASCII range                 // see: http://www.cl.cam.ac.uk/~mgk25/unicode.html#utf-8                 return chr(0x7F & $bytes);

            case (0x07FF & $bytes) == $bytes:
                // return a 2-byte UTF-8 character                 // see: http://www.cl.cam.ac.uk/~mgk25/unicode.html#utf-8                 return chr(0xC0 | (($bytes >> 6) & 0x1F))
                     . chr(0x80 | ($bytes & 0x3F));

            case (0xFFFF & $bytes) == $bytes:
                


        foreach ($fields as $columnEntry) {
            $column = $columnEntry[1];
            $alias = $columnEntry[2];

            if ($alias !== null) {
                $column = $alias;
            }

            switch (true) {
                case ($column == self::SQL_WILDCARD):
                    break;

                case ($column instanceof Zend_Db_Expr):
                case (!in_array($column$cols)):
                    $readOnly = true;
                    break 2;
            }
        }

        return $readOnly;
    }

    
 self::$typeMap[$attribute->type]
            : $attribute->type;

        // handle the case if the property type is mixed         if ('mixed' === $type) {
            return;
        }

        // Evaluate type         switch (true) {
            // Checks if the property has array<type>             case (false !== $pos = strpos($type, '<')):
                $arrayType  = substr($type$pos + 1, -1);
                $type       = 'array';

                if (isset(self::$typeMap[$arrayType])) {
                    $arrayType = self::$typeMap[$arrayType];
                }

                $metadata['attribute_types'][$attribute->name]['array_type'] = $arrayType;
                break;

            // Checks if the property has type[]
Home | Imprint | This part of the site doesn't use cookies.