public function canSeePv($gid = null)
    {
        $result = false;
        if (is_null($gid)) {
            $gid = $this->session->getCustomerGroupId();
        }
        if (!isset($this->cacheCanSeeByGid[$gid])) {
            $item = $this->daoPvCustGroup->getById($gid);
            if ($item) $result = (bool)$item->getCanSeePv();
            $this->cacheCanSeeByGid[$gid] = $result;
        } else {
            $result = $this->cacheCanSeeByGid[$gid];
        }
        return $result;
    }
public function canSeePv($gid = null)
    {
        $result = false;
        if (is_null($gid)) {
            $gid = $this->session->getCustomerGroupId();
        }
        if (!isset($this->cacheCanSeeByGid[$gid])) {
            $item = $this->daoPvCustGroup->getById($gid);
            if ($item) $result = (bool)$item->getCanSeePv();
            $this->cacheCanSeeByGid[$gid] = $result;
        } else {
            $result = $this->cacheCanSeeByGid[$gid];
        }
        return $result;
    }
public function canSeePv ( $ gid = null ) { $ result = false ; if ( is_null ( $ gid ) ) { $ gid = $ this -> session -> getCustomerGroupId ( ) ; } if ( ! isset ( $ this -> cacheCanSeeByGid [ $ gid ] ) ) { $ item = $ this -> daoPvCustGroup -> getById ( $ gid ) ; if ( $ item ) $ result = ( bool ) $ item -> getCanSeePv ( ) ; $ this -> cacheCanSeeByGid [ $ gid ] = $ result ; } else { $ result = $ this -> cacheCanSeeByGid [ $ gid ] ; } return $ result ; }
Cached accessor for 'Can See PV' flag.

@param int|null $gid customer group ID, if 'null' - group for current customer is used.
@return bool
Cached accessor for Can See PV flag .