Grido\Components\Container::hasActions PHP Метод

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

public hasActions ( boolean $useCache = TRUE ) : boolean
$useCache boolean
Результат boolean
    public function hasActions($useCache = TRUE)
    {
        $hasActions = $this->hasActions;
        if ($hasActions === NULL || $useCache === FALSE) {
            $container = $this->getComponent(Action::ID, FALSE);
            $hasActions = $container && count($container->getComponents()) > 0;
            $this->hasActions = $useCache ? $hasActions : NULL;
        }
        return $hasActions;
    }