public function setProject(CNabuProject $nb_project, $field = NABU_PROJECT_FIELD_ID)
    {
        $this->nb_project = $nb_project;
        if ($this instanceof CNabuDataObject) {
            $this->transferValue($nb_project, NABU_PROJECT_FIELD_ID, $field);
        }

        return $this;
    }
public function setProject(CNabuProject $nb_project, $field = NABU_PROJECT_FIELD_ID)
    {
        $this->nb_project = $nb_project;
        if ($this instanceof CNabuDataObject) {
            $this->transferValue($nb_project, NABU_PROJECT_FIELD_ID, $field);
        }

        return $this;
    }
public function setProject ( CNabuProject $ nb_project , $ field = NABU_PROJECT_FIELD_ID ) { $ this -> nb_project = $ nb_project ; if ( $ this instanceof CNabuDataObject ) { $ this -> transferValue ( $ nb_project , NABU_PROJECT_FIELD_ID , $ field ) ; } return $ this ; }
Sets the Project instance that owns this object and sets the field containing the project id.
@param CNabuProject $nb_project Project instance to be setted.
@param string $field Field name where the site id will be stored.
@return CNabuDataObject Returns $this to allow the cascade chain of setters.
Sets the Project instance that owns this object and sets the field containing the project id .