public function getOne($callerClass, $filter = "", $cache = true, $orderby = "", $requiredPerm = 'View')
    {
        $items = $this->getAll($callerClass, $filter, $orderby, null, null, $requiredPerm);
        if ($items && count($items)) {
            return $items[0];
        }
    }
public function getOne($callerClass, $filter = "", $cache = true, $orderby = "", $requiredPerm = 'View')
    {
        $items = $this->getAll($callerClass, $filter, $orderby, null, null, $requiredPerm);
        if ($items && count($items)) {
            return $items[0];
        }
    }
public function getOne ( $ callerClass , $ filter = "" , $ cache = true , $ orderby = "" , $ requiredPerm = 'View' ) { $ items = $ this -> getAll ( $ callerClass , $ filter , $ orderby , null , null , $ requiredPerm ) ; if ( $ items && count ( $ items ) ) { return $ items [ 0 ] ; } }
Gets a single object

@param type $callerClass
@param type $filter
@param type $cache
@param type $orderby
@return DataObject
Gets a single object