Example #1
0
 /**
  * Returns the associative array for this Category
  *
  * @return array
  */
 public function toArray()
 {
     $a = parent::toArray();
     if ($this->scheme) {
         $a["scheme"] = $this->scheme;
     }
     if ($this->term) {
         $a["term"] = $this->term;
     }
     if ($this->label) {
         $a["label"] = $this->label;
     }
     return $a;
 }
Example #2
0
 /**
  * Returns the associative array for this ExtensibleElement
  *
  * @return array
  */
 public function toArray()
 {
     $a = parent::toArray();
     return $a;
 }