classes/collection/ElementCollection.php
public function push($iElementID)
    {
        if (empty($iElementID)) {
            return $this->returnThis();
        }

        if ($this->isEmpty()) {
            $this->arElementIDList = [$iElementID];

            return $this->returnThis();
        }

        $this->arElementIDList[] = $iElementID;

        return $this->returnThis();
    }
public function push($iElementID)
    {
        if (empty($iElementID)) {
            return $this->returnThis();
        }

        if ($this->isEmpty()) {
            $this->arElementIDList = [$iElementID];

            return $this->returnThis();
        }

        $this->arElementIDList[] = $iElementID;

        return $this->returnThis();
    }
public function push ( $ iElementID ) { if ( empty ( $ iElementID ) ) { return $ this -> returnThis ( ) ; } if ( $ this -> isEmpty ( ) ) { $ this -> arElementIDList = [ $ iElementID ] ; return $ this -> returnThis ( ) ; } $ this -> arElementIDList [ ] = $ iElementID ; return $ this -> returnThis ( ) ; }
Push element ID to end of list
@param int $iElementID
@see  \Lovata\Toolbox\Tests\Unit\CollectionTest::testUnshiftMethod()
@link https://github.com/lovata/oc-toolbox-plugin/wiki/ElementCollection#pushielementid
@return $this
Push element ID to end of list