Example #1
0
 /**
  * Returns true if the passed Meta object is an exact match against this one
  *
  * @param Meta $meta The meta object to compare
  *
  * @return boolean
  */
 public function matchExact(Meta $meta)
 {
     $metaArray = $meta->toArray();
     foreach (array('MetaName', 'MetaValue') as $key) {
         if (strcmp($metaArray[$key], $this->fields[$key]) !== 0) {
             return false;
         }
     }
     return true;
 }