src/snac/data/SNACControlMetadata.php
/**
     * Required method to convert this data object 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 data object 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 data object 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" => "SNACControlMetadata",
            "citation" => $this->citation == null ? null : $this->citation->toArray($shorten),
            "subCitation" => $this->subCitation,
            "sourceData" => $this->sourceData,
            "descriptiveRule" => $this->descriptiveRule == null ? null : $this->descriptiveRule->toArray($shorten),
            "language" => $this->language == null ? null : $this->language->toArray($shorten),
            "object" => $this->object,
            "note" => $this->note
        );
        $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 " => " SNACControlMetadata " , " citation " => $ this -> citation == null ? null : $ this -> citation -> toArray ( $ shorten ) , " subCitation " => $ this -> subCitation , " sourceData " => $ this -> sourceData , " descriptiveRule " => $ this -> descriptiveRule == null ? null : $ this -> descriptiveRule -> toArray ( $ shorten ) , " language " => $ this -> language == null ? null : $ this -> language -> toArray ( $ shorten ) , " object " => $ this -> object , " note " => $ this -> note ) ; $ 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 data object 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 data object 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