src/Ease/Container.php
public function &addAsFirst($pageItem, $pageItemName = null)
    {
        if (is_null($pageItemName)) {
            $pageItemName = '1st';
        }
        $swap            = is_array($this->pageParts) ? $this->pageParts : [];
        $this->emptyContents();
        $itemPointer     = $this->addItem($pageItem, $pageItemName);
        $this->pageParts = array_merge( is_array($this->pageParts) ? $this->pageParts : [], $swap);

        return $itemPointer;
    }
public function &addAsFirst($pageItem, $pageItemName = null)
    {
        if (is_null($pageItemName)) {
            $pageItemName = '1st';
        }
        $swap            = is_array($this->pageParts) ? $this->pageParts : [];
        $this->emptyContents();
        $itemPointer     = $this->addItem($pageItem, $pageItemName);
        $this->pageParts = array_merge( is_array($this->pageParts) ? $this->pageParts : [], $swap);

        return $itemPointer;
    }
Vloží jako první element do objektu.

@param mixed  $pageItem     hodnota nebo EaseObjekt s metodou draw()
@param string $pageItemName Pod tímto jménem je objekt vkládán do stromu

@return pointer Odkaz na vložený objekt