samples/PhotoAlbum/lib/rb.php
public function taggedAll( $beanType, $tagList ) {
		if ($tagList!==false && !is_array($tagList)) $tags = explode( ",", (string)$tagList); else $tags=$tagList;
		$beans = array();
		foreach($tags as $tag) {
			$beans = $this->tagged($beanType,$tag);
			if (isset($oldBeans)) $beans = array_intersect_assoc($beans,$oldBeans);
			$oldBeans = $beans;
		}
		return $beans;
	}
public function taggedAll( $beanType, $tagList ) {
		if ($tagList!==false && !is_array($tagList)) $tags = explode( ",", (string)$tagList); else $tags=$tagList;
		$beans = array();
		foreach($tags as $tag) {
			$beans = $this->tagged($beanType,$tag);
			if (isset($oldBeans)) $beans = array_intersect_assoc($beans,$oldBeans);
			$oldBeans = $beans;
		}
		return $beans;
	}
public function taggedAll ( $ beanType , $ tagList ) { if ( $ tagList !== false && ! is_array ( $ tagList ) ) $ tags = explode ( "," , ( string ) $ tagList ) ; else $ tags = $ tagList ; $ beans = array ( ) ; foreach ( $ tags as $ tag ) { $ beans = $ this -> tagged ( $ beanType , $ tag ) ; if ( isset ( $ oldBeans ) ) $ beans = array_intersect_assoc ( $ beans , $ oldBeans ) ; $ oldBeans = $ beans ; } return $ beans ; }
Part of RedBeanPHP Tagging API.
Returns all beans that have been tagged with ALL of the tags given.

@param  $beanType type of bean you are looking for
@param  $tagList  list of tags to match

@return array
Part of RedBeanPHP Tagging API . Returns all beans that have been tagged with ALL of the tags given .