public function addFragment($fragment)
    {
        if (is_array($fragment)) {
            $this->fragments = array_merge($this->fragments, $fragment);
        } else {
            $this->fragments[] = $fragment;
        }
    }
public function addFragment($fragment)
    {
        if (is_array($fragment)) {
            $this->fragments = array_merge($this->fragments, $fragment);
        } else {
            $this->fragments[] = $fragment;
        }
    }
public function addFragment ( $ fragment ) { if ( is_array ( $ fragment ) ) { $ this -> fragments = array_merge ( $ this -> fragments , $ fragment ) ; } else { $ this -> fragments [ ] = $ fragment ; } }
Add a fragment or an array with a set of fragments.
Each fragment can be of type string or an instance of class CNabuPHPFragmentBuilder or a descendant of him.
@param mixed $fragment Fragments to be added
Add a fragment or an array with a set of fragments . Each fragment can be of type string or an instance of class CNabuPHPFragmentBuilder or a descendant of him .