public function pushTrail($components)
    {
        $trail = &$this->getTrail();

        if ($components instanceof QtiComponent) {
            array_push($trail, $components);
        } else {
            $i = count($components);
            // collection
            while ($i >= 1) {
                $i--;
                array_push($trail, $components[$i]);
            }
        }
    }
public function pushTrail($components)
    {
        $trail = &$this->getTrail();

        if ($components instanceof QtiComponent) {
            array_push($trail, $components);
        } else {
            $i = count($components);
            // collection
            while ($i >= 1) {
                $i--;
                array_push($trail, $components[$i]);
            }
        }
    }
public function pushTrail ( $ components ) { $ trail = & $ this -> getTrail ( ) ; if ( $ components instanceof QtiComponent ) { array_push ( $ trail , $ components ) ; } else { $ i = count ( $ components ) ; // collection while ( $ i >= 1 ) { $ i -- ; array_push ( $ trail , $ components [ $ i ] ) ; } } }
Push some Rule objects on the trail stack.

@param \qtism\data\QtiComponentCollection|\qtism\data\QtiComponent $components A collection of Rule objects.
Push some Rule objects on the trail stack .