src/snac/data/Activity.php
/**
     * Replaces this object's data with the given associative array
     *
     * @param string[][] $data This objects data in array form
     * @return boolean true on success, false on failure
     */
Replaces this object's data with the given associative array
@param string[][] $data This objects data in array form
@return boolean true on success, false on failure
Replaces this object ' s data with the given associative array @param string [] [] $data This objects data in array form @return boolean true on success false on failure
public function fromArray($data) {
        if (!isset($data["dataType"]) || $data["dataType"] != "Activity")
            return false;
        parent::fromArray($data);
        if (isset($data["term"]) && $data["term"] != null)
            $this->term = new Term($data["term"]);
        else
            $this->term = null;
        if (isset($data["type"]) && $data["type"] != null)
            $this->type = new Term($data["type"]);
        else
            $this->type = null;
        if (isset($data["vocabularySource"]))
            $this->vocabularySource = $data["vocabularySource"];
        else
            $this->vocabularySource = null;
        if (isset($data["note"]))
            $this->note = $data["note"];
        else
            $this->note = null;
        return true;
    }
public function fromArray ( $ data ) { if ( ! isset ( $ data [ " dataType " ] ) || $ data [ " dataType " ] != " Activity " ) return false ; parent :: fromArray ( $ data ) ; if ( isset ( $ data [ " term " ] ) && $ data [ " term " ] != null ) $ this -> term = new Term ( $ data [ " term " ] ) ; else $ this -> term = null ; if ( isset ( $ data [ " type " ] ) && $ data [ " type " ] != null ) $ this -> type = new Term ( $ data [ " type " ] ) ; else $ this -> type = null ; if ( isset ( $ data [ " vocabularySource " ] ) ) $ this -> vocabularySource = $ data [ " vocabularySource " ] ; else $ this -> vocabularySource = null ; if ( isset ( $ data [ " note " ] ) ) $ this -> note = $ data [ " note " ] ; else $ this -> note = null ; return true ; }
Replaces this object's data with the given associative array
 @param string[][] $data This objects data in array form
 @return boolean true on success, false on failure
Replaces this object ' s data with the given associative array @param string [] [] $data This objects data in array form @return boolean true on success false on failure