is_integer example

                case 'rmra': // Reference Movie Record Atom                 case 'rmda': // Reference Movie Descriptor Atom                 case 'gmhd': // Generic Media info HeaDer atom (seen on QTVR)                     $atom_structure['subatoms'] = $this->QuicktimeParseContainerAtom($atom_data$baseoffset + 8, $atomHierarchy$ParseAllPossibleAtoms);
                    break;

                case 'ilst': // Item LiST container atom                     if ($atom_structure['subatoms'] = $this->QuicktimeParseContainerAtom($atom_data$baseoffset + 8, $atomHierarchy$ParseAllPossibleAtoms)) {
                        // some "ilst" atoms contain data atoms that have a numeric name, and the data is far more accessible if the returned array is compacted                         $allnumericnames = true;
                        foreach ($atom_structure['subatoms'] as $subatomarray) {
                            if (!is_integer($subatomarray['name']) || (count($subatomarray['subatoms']) != 1)) {
                                $allnumericnames = false;
                                break;
                            }
                        }
                        if ($allnumericnames) {
                            $newData = array();
                            foreach ($atom_structure['subatoms'] as $subatomarray) {
                                foreach ($subatomarray['subatoms'] as $newData_subatomarray) {
                                    unset($newData_subatomarray['hierarchy']$newData_subatomarray['name']);
                                    $newData[$subatomarray['name']] = $newData_subatomarray;
                                    break;
                                }

    public function IXR_Value( $data$type = false ) {
        self::__construct( $data$type );
    }

    function calculateType()
    {
        if ($this->data === true || $this->data === false) {
            return 'boolean';
        }
        if (is_integer($this->data)) {
            return 'int';
        }
        if (is_double($this->data)) {
            return 'double';
        }

        // Deal with IXR object types base64 and date         if (is_object($this->data) && is_a($this->data, 'IXR_Date')) {
            return 'date';
        }
        if (is_object($this->data) && is_a($this->data, 'IXR_Base64')) {
            

    protected function _bindParam($parameter, &$variable$type = null, $length = null, $options = null)
    {
        try {
            if ($type === null) {
                if (is_bool($variable)) {
                    $type = PDO::PARAM_BOOL;
                } elseif ($variable === null) {
                    $type = PDO::PARAM_NULL;
                } elseif (is_integer($variable)) {
                    $type = PDO::PARAM_INT;
                } else {
                    $type = PDO::PARAM_STR;
                }
            }
            return $this->_stmt->bindParam($parameter$variable$type$length$options);
        } catch (PDOException $e) {
            throw new Zend_Db_Statement_Exception($e->getMessage()$e->getCode()$e);
        }
    }

    
// ----- Look for arguments     if ($v_size > 1) {
      // ----- Get the arguments       $v_arg_list = func_get_args();

      // ----- Remove from the options list the first argument       array_shift($v_arg_list);
      $v_size--;

      // ----- Look for first arg       if ((is_integer($v_arg_list[0])) && ($v_arg_list[0] > 77000)) {

        // ----- Parse the options         $v_result = $this->privParseOptions($v_arg_list$v_size$v_options,
                                            array (PCLZIP_OPT_REMOVE_PATH => 'optional',
                                                   PCLZIP_OPT_REMOVE_ALL_PATH => 'optional',
                                                   PCLZIP_OPT_ADD_PATH => 'optional',
                                                   PCLZIP_CB_PRE_ADD => 'optional',
                                                   PCLZIP_CB_POST_ADD => 'optional',
                                                   PCLZIP_OPT_NO_COMPRESSION => 'optional',
                                                   PCLZIP_OPT_COMMENT => 'optional',
                                                   PCLZIP_OPT_TEMP_FILE_THRESHOLD => 'optional',
                                                   
/** * setAmbiguityIdentity() - sets a flag for usage of identical identities * with unique credentials. It accepts integers (0, 1) or boolean (true, * false) parameters. Default is false. * * @param int|bool $flag * * @return Zend_Auth_Adapter_DbTable */
    public function setAmbiguityIdentity($flag)
    {
        if (is_integer($flag)) {
            $this->_ambiguityIdentity = ($flag === 1 ? true : false);
        } elseif (is_bool($flag)) {
            $this->_ambiguityIdentity = $flag;
        }

        return $this;
    }

    /** * getAmbiguityIdentity() - returns TRUE for usage of multiple identical * identies with different credentials, FALSE if not used. * * @return bool */
return $iniString;
    }

    /** * Prepare a value for INI * * @param mixed $value * @return string */
    protected function _prepareValue($value)
    {
        if (is_integer($value) || is_float($value)) {
            return $value;
        } elseif (is_bool($value)) {
            return ($value ? 'true' : 'false');
        } elseif (strpos($value, '"') === false) {
            return '"' . $value .  '"';
        } else {
            /** @see Zend_Config_Exception */
            throw new Zend_Config_Exception('Value can not contain double quotes "');
        }
    }

    
// Confirm $path is valid.     if ( ! is_array( $path ) || 0 === count( $path ) ) {
        return $default_value;
    }

    foreach ( $path as $path_element ) {
        if ( ! is_array( $input_array ) ) {
            return $default_value;
        }

        if ( is_string( $path_element )
            || is_integer( $path_element )
            || null === $path_element
        ) {
            /* * Check if the path element exists in the input array. * We check with `isset()` first, as it is a lot faster * than `array_key_exists()`. */
            if ( isset( $input_array[ $path_element ] ) ) {
                $input_array = $input_array[ $path_element ];
                continue;
            }

            
Home | Imprint | This part of the site doesn't use cookies.