Exemple #1
0
 /**
  * Part of RedBeanPHP Tagging API.
  * Tests whether a bean has been associated with one ore more
  * of the listed tags. If the third parameter is TRUE this method
  * will return TRUE only if all tags that have been specified are indeed
  * associated with the given bean, otherwise FALSE.
  * If the third parameter is FALSE this
  * method will return TRUE if one of the tags matches, FALSE if none
  * match.
  *
  * @param  RedBean_OODBBean $bean bean to check for tags
  * @param  array            $tags list of tags
  * @param  boolean          $all  whether they must all match or just some
  *
  * @return boolean $didMatch whether the bean has been assoc. with the tags
  */
 public static function hasTag($bean, $tags, $all = false)
 {
     return self::$tagManager->hasTag($bean, $tags, $all);
 }
 /**
  * Part of RedBeanPHP Tagging API.
  * Tests whether a bean has been associated with one ore more
  * of the listed tags. If the third parameter is TRUE this method
  * will return TRUE only if all tags that have been specified are indeed
  * associated with the given bean, otherwise FALSE.
  * If the third parameter is FALSE this
  * method will return TRUE if one of the tags matches, FALSE if none
  * match.
  *
  * @param  RedBean_OODBBean $bean bean to check for tags
  * @param  array            $tags list of tags
  * @param  boolean          $all  whether they must all match or just some
  *
  * @return boolean
  */
 public function hasTag($bean, $tags, $all = FALSE)
 {
     return $this->tagManager->hasTag($bean, $tags, $all);
 }