src/snac/data/Role.php
/**
     * Required method to import an array into this data object
     *
     * @param string[][] $data The data for this object in an associative array
     */
Required method to import an array into this data object
@param string[][] $data The data for this object in an associative array
Required method to import an array into this data object @param string [] [] $data The data for this object in an associative array
public function fromArray($data) {
        if (!isset($data["dataType"]) || $data["dataType"] != $this->dataType)
            return false;
        parent::fromArray($data);
        unset($this->privilegeList);
        $this->privilegeList = array();
        if (isset($data["privilegeList"])) {
            foreach ($data["privilegeList"] as $i => $entry)
                if ($entry != null)
                    $this->privilegeList[$i] = new \snac\data\Privilege($entry);
        }
    }
public function fromArray ( $ data ) { if ( ! isset ( $ data [ " dataType " ] ) || $ data [ " dataType " ] != $ this -> dataType ) return false ; parent :: fromArray ( $ data ) ; unset ( $ this -> privilegeList ) ; $ this -> privilegeList = array ( ) ; if ( isset ( $ data [ " privilegeList " ] ) ) { foreach ( $ data [ " privilegeList " ] as $ i => $ entry ) if ( $ entry != null ) $ this -> privilegeList [ $ i ] = new \ snac \ data \ Privilege ( $ entry ) ; } }
Required method to import an array into this data object
 @param string[][] $data The data for this object in an associative array
Required method to import an array into this data object @param string [] [] $data The data for this object in an associative array