/** * Finds a bean by its URI. * Returns the bean identified by the specified URI. * * For more details * @see RedBean_Finder::findByPath * * @return void */ private function findBeanByURI() { $finder = new RedBean_Finder($this->toolbox); $this->bean = $finder->findByPath($this->root, $this->uri); $this->beanType = $this->bean->getMeta('type'); }
/** * @see RedBean_Facade::find * This variation returns the last bean only. * * @param string $type type the type of bean you are looking for * @param string $sql sql SQL query to find the desired bean, starting right after WHERE clause * @param array $values values array of values to be bound to parameters in query * * @return RedBean_OODBBean $bean */ public static function findLast($type, $sql = null, $values = array()) { return self::$finder->findLast($type, $sql, $values); }
/** * @see RedBean_Instance::find * This variation returns the last bean only. * * @param string $type type the type of bean you are looking for * @param string $sql sql SQL query to find the desired bean, starting right after WHERE clause * @param array $bindings values array of values to be bound to parameters in query * * @return RedBean_OODBBean */ public function findLast($type, $sql = NULL, $bindings = array()) { return $this->finder->findLast($type, $sql, $bindings); }
/** * @see RedBean_Facade::find * This variation returns the last bean only. * * @param string $type type the type of bean you are looking for * @param string $sql sql SQL query to find the desired bean, starting right after WHERE clause * @param array $bindings values array of values to be bound to parameters in query * * @return RedBean_OODBBean */ public static function findLast($type, $sql = NULL, $bindings = array()) { return self::$finder->findLast($type, $sql, $bindings); }