src/snac/data/Image.php
/**
     * Required method to convert this term structure to an array
     *
     * @param boolean $shorten optional Whether or not to include null/empty components
     * @return string[][] This object as an associative array
     */
Required method to convert this term structure to an array
@param boolean $shorten optional Whether or not to include null/empty components
@return string[][] This object as an associative array
Required method to convert this term structure to an array @param boolean $shorten optional Whether or not to include null / empty components @return string [] [] This object as an associative array
public function toArray($shorten = true) {
        $return = array(
            'dataType' => "Image",
            'url' => $this->getURL(),
            'infoURL' => $this->getInfoURL(),
            'info' => $this->getInfo(),
            'author' => $this->getAuthor(),
            'authorURL' => $this->getAuthorURL(),
            'license' => $this->getLicense(),
            'licenseURL' => $this->getLicenseURL()
        );
        $return = array_merge($return, parent::toArray($shorten));
        if ($shorten) {
            $return2 = array();
            foreach ($return as $i => $v)
                if ($v != null && !empty($v))
                    $return2[$i] = $v;
            unset($return);
            $return = $return2;
        }
        return $return;
    }
public function toArray ( $ shorten = true ) { $ return = array ( 'dataType' => " Image " , 'url' => $ this -> getURL ( ) , 'infoURL' => $ this -> getInfoURL ( ) , 'info' => $ this -> getInfo ( ) , 'author' => $ this -> getAuthor ( ) , 'authorURL' => $ this -> getAuthorURL ( ) , 'license' => $ this -> getLicense ( ) , 'licenseURL' => $ this -> getLicenseURL ( ) ) ; $ return = array_merge ( $ return , parent :: toArray ( $ shorten ) ) ; if ( $ shorten ) { $ return2 = array ( ) ; foreach ( $ return as $ i => $ v ) if ( $ v != null && ! empty ( $ v ) ) $ return2 [ $ i ] = $ v ; unset ( $ return ) ; $ return = $ return2 ; } return $ return ; }
Required method to convert this term structure to an array
 @param boolean $shorten optional Whether or not to include null/empty components
 @return string[][] This object as an associative array
Required method to convert this term structure to an array @param boolean $shorten optional Whether or not to include null / empty components @return string [] [] This object as an associative array
// Shorten if necessary