Exemple #1
0
 /**
  * Returns all beans that have been tagged with ALL of the tags given.
  *
  * Tag list can be either an array with tag names or a comma separated list
  * of tag names.
  *
  * @param string        $beanType type of bean you are looking for
  * @param array|string  $tagList  list of tags to match
  *
  * @return array
  */
 public function taggedAll($beanType, $tagList, $sql = '', $bindings = array())
 {
     $tags = $this->extractTagsIfNeeded($tagList);
     $records = $this->toolbox->getWriter()->queryTagged($beanType, $tags, TRUE, $sql, $bindings);
     return $this->redbean->convertToBeans($beanType, $records);
 }