src/Ease/Container.php
public function getItemsCount($object = null)
    {
        $itemCount = 0;
        if (is_null($object) && !empty($this->pageParts)) {
            $itemCount = count($this->pageParts);
        }
        if (is_object($object) && isset($object->pageParts)) {
            $itemCount = count($object->pageParts);
        }

        return $itemCount;
    }
public function getItemsCount($object = null)
    {
        $itemCount = 0;
        if (is_null($object) && !empty($this->pageParts)) {
            $itemCount = count($this->pageParts);
        }
        if (is_object($object) && isset($object->pageParts)) {
            $itemCount = count($object->pageParts);
        }

        return $itemCount;
    }
Vrací počet vložených položek.
Obtain number of enclosed items in current or given object.

@param Container $object hodnota nebo EaseObjekt s polem ->pageParts

@return int nuber of parts enclosed