|
@@ 9697-9703 (lines=7) @@
|
| 9694 |
|
* |
| 9695 |
|
* @return array |
| 9696 |
|
*/ |
| 9697 |
|
public function tagged( $beanType, $tagList, $sql = '', $bindings = array() ) |
| 9698 |
|
{ |
| 9699 |
|
$tags = $this->extractTagsIfNeeded( $tagList ); |
| 9700 |
|
$records = $this->toolbox->getWriter()->queryTagged( $beanType, $tags, FALSE, $sql, $bindings ); |
| 9701 |
|
|
| 9702 |
|
return $this->redbean->convertToBeans( $beanType, $records ); |
| 9703 |
|
} |
| 9704 |
|
|
| 9705 |
|
/** |
| 9706 |
|
* Returns all beans that have been tagged with ALL of the tags given. |
|
@@ 9716-9722 (lines=7) @@
|
| 9713 |
|
* |
| 9714 |
|
* @return array |
| 9715 |
|
*/ |
| 9716 |
|
public function taggedAll( $beanType, $tagList, $sql = '', $bindings = array() ) |
| 9717 |
|
{ |
| 9718 |
|
$tags = $this->extractTagsIfNeeded( $tagList ); |
| 9719 |
|
$records = $this->toolbox->getWriter()->queryTagged( $beanType, $tags, TRUE, $sql, $bindings ); |
| 9720 |
|
|
| 9721 |
|
return $this->redbean->convertToBeans( $beanType, $records ); |
| 9722 |
|
} |
| 9723 |
|
} |
| 9724 |
|
} |
| 9725 |
|
|