コード例 #1
0
ファイル: Meta.php プロジェクト: wb-crowdfusion/crowdfusion
 /**
  * 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;
 }