public function setSlug($slug)
    {
        if(empty($this->fields['Slug']) || empty($this->fields['OriginalSlug']))
        {
            $this->fields['NodeRef'] = new NodeRef($this->getNodeRef()->getElement(), $slug);
        }

        $this->fields['Slug'] = $slug;
    }
public function setSlug($slug)
    {
        if(empty($this->fields['Slug']) || empty($this->fields['OriginalSlug']))
        {
            $this->fields['NodeRef'] = new NodeRef($this->getNodeRef()->getElement(), $slug);
        }

        $this->fields['Slug'] = $slug;
    }
public function setSlug ( $ slug ) { if ( empty ( $ this -> fields [ 'Slug' ] ) || empty ( $ this -> fields [ 'OriginalSlug' ] ) ) { $ this -> fields [ 'NodeRef' ] = new NodeRef ( $ this -> getNodeRef ( ) -> getElement ( ) , $ slug ) ; } $ this -> fields [ 'Slug' ] = $ slug ; }
Sets the Slug

@param string $slug A valid

@return void
Sets the Slug