src/snac/data/AbstractGrouping.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' => $this->dataType,
            'id' => $this->getID(),
            'label' => $this->getLabel(),
            'description' => $this->getDescription()
        );
        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' => $ this -> dataType , 'id' => $ this -> getID ( ) , 'label' => $ this -> getLabel ( ) , 'description' => $ this -> getDescription ( ) ) ; 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