samples/PhotoAlbum/lib/rb.php
public function findTagByTitle($title) {
		$beans = $this->redbean->find('tag',array('title'=>array($title)));
		if ($beans) {
			$bean = reset($beans);
			return $bean;
		}
		return null;
	}
public function findTagByTitle($title) {
		$beans = $this->redbean->find('tag',array('title'=>array($title)));
		if ($beans) {
			$bean = reset($beans);
			return $bean;
		}
		return null;
	}
public function findTagByTitle ( $ title ) { $ beans = $ this -> redbean -> find ( 'tag' , array ( 'title' => array ( $ title ) ) ) ; if ( $ beans ) { $ bean = reset ( $ beans ) ; return $ bean ; } return null ; }
Finds a tag bean by it's title.

@param string $title title

@return RedBean_OODBBean $bean | null
Finds a tag bean by it s title .