CampContext::resetCurrentList PHP Метод

resetCurrentList() публичный Метод

Resets the current list.
public resetCurrentList ( ) : void
Результат void
    public function resetCurrentList()
    {
        if (!isset($this->m_readonlyProperties['current_list']) || count($this->m_readonlyProperties['lists']) == 0) {
            return;
        }
        $this->m_readonlyProperties['prev_list_empty'] = (int) ($this->m_readonlyProperties['current_list']->count == 0);
        $this->RestoreProperties();
        $objectName = $this->GetListObjectName(get_class($this->m_readonlyProperties['current_list']));
        $listName = $this->m_listObjects[$objectName]['list'];
        if (count($this->m_readonlyProperties[$listName . '_lists']) > 0) {
            array_pop($this->m_readonlyProperties[$listName . '_lists']);
            $this->m_readonlyProperties['current_' . $listName . '_list'] = end($this->m_readonlyProperties[$listName . '_lists']);
        }
        array_pop($this->m_readonlyProperties['lists']);
        $this->m_readonlyProperties['current_list'] = end($this->m_readonlyProperties['lists']);
    }