src/ImageHotspotBundle/objects/db/TPkgImageHotspotItem.class.php
public function GetNextItem()
    {
        $oNextItem = &$this->GetFromInternalCache('oNextItem');
        if (is_null($oNextItem)) {
            $oItemList = TdbPkgImageHotspotItemList::GetListForPkgImageHotspotId($this->fieldPkgImageHotspotId);
            $oItemList->bAllowItemCache = true;
            if ($oItemList->Length() > 1) {
                $oNextItem = null;
                $oFirst = $oItemList->Current();
                while (is_null($oNextItem) && ($oTmpItem = $oItemList->Next())) {
                    if ($oTmpItem->IsSameAs($this)) {
                        $oNextItem = $oItemList->Next();
                    }
                }
                if (false === $oNextItem) {
                    $oNextItem = $oFirst;
                    if ($oNextItem->IsSameAs($this)) {
                        $oNextItem = false;
                    }
                }
            }
            $this->SetInternalCache('oNextItem', $oNextItem);
        }

        return $oNextItem;
    }
public function GetNextItem()
    {
        $oNextItem = &$this->GetFromInternalCache('oNextItem');
        if (is_null($oNextItem)) {
            $oItemList = TdbPkgImageHotspotItemList::GetListForPkgImageHotspotId($this->fieldPkgImageHotspotId);
            $oItemList->bAllowItemCache = true;
            if ($oItemList->Length() > 1) {
                $oNextItem = null;
                $oFirst = $oItemList->Current();
                while (is_null($oNextItem) && ($oTmpItem = $oItemList->Next())) {
                    if ($oTmpItem->IsSameAs($this)) {
                        $oNextItem = $oItemList->Next();
                    }
                }
                if (false === $oNextItem) {
                    $oNextItem = $oFirst;
                    if ($oNextItem->IsSameAs($this)) {
                        $oNextItem = false;
                    }
                }
            }
            $this->SetInternalCache('oNextItem', $oNextItem);
        }

        return $oNextItem;
    }
public function GetNextItem ( ) { $ oNextItem = & $ this -> GetFromInternalCache ( 'oNextItem' ) ; if ( is_null ( $ oNextItem ) ) { $ oItemList = TdbPkgImageHotspotItemList :: GetListForPkgImageHotspotId ( $ this -> fieldPkgImageHotspotId ) ; $ oItemList -> bAllowItemCache = true ; if ( $ oItemList -> Length ( ) > 1 ) { $ oNextItem = null ; $ oFirst = $ oItemList -> Current ( ) ; while ( is_null ( $ oNextItem ) && ( $ oTmpItem = $ oItemList -> Next ( ) ) ) { if ( $ oTmpItem -> IsSameAs ( $ this ) ) { $ oNextItem = $ oItemList -> Next ( ) ; } } if ( false === $ oNextItem ) { $ oNextItem = $ oFirst ; if ( $ oNextItem -> IsSameAs ( $ this ) ) { $ oNextItem = false ; } } } $ this -> SetInternalCache ( 'oNextItem' , $ oNextItem ) ; } return $ oNextItem ; }
returns the item next in line relative to this item
if the current item is the last in line, the method will return the first item. returns false if
no next item exists.

@return TdbPkgImageHotspotItem
returns the item next in line relative to this item if the current item is the last in line the method will return the first item . returns false if no next item exists .