src/Entity/XiboCampaign.php
public function edit($campaign)
    {
        $this->getLogger()->debug('Getting Resource Owner');
        $this->ownerId = $this->getEntityProvider()->getMe()->getId();
        $this->campaign = $campaign;

        // Rewrite parameter mismatch
        $array = $this->toArray();
        $array['name'] = $array['campaign'];
        $this->getLogger()->info('Editing Campaign ID ' . $this->campaignId);
        $response = $this->doPut($this->url . '/' . $this->campaignId, $array);

        $this->getLogger()->debug('Passing the response to Hydrate');
        return $this->hydrate($response);
    }
public function edit($campaign)
    {
        $this->getLogger()->debug('Getting Resource Owner');
        $this->ownerId = $this->getEntityProvider()->getMe()->getId();
        $this->campaign = $campaign;

        // Rewrite parameter mismatch
        $array = $this->toArray();
        $array['name'] = $array['campaign'];
        $this->getLogger()->info('Editing Campaign ID ' . $this->campaignId);
        $response = $this->doPut($this->url . '/' . $this->campaignId, $array);

        $this->getLogger()->debug('Passing the response to Hydrate');
        return $this->hydrate($response);
    }
public function edit ( $ campaign ) { $ this -> getLogger ( ) -> debug ( 'Getting Resource Owner' ) ; $ this -> ownerId = $ this -> getEntityProvider ( ) -> getMe ( ) -> getId ( ) ; $ this -> campaign = $ campaign ; // Rewrite parameter mismatch $ array = $ this -> toArray ( ) ; $ array [ 'name' ] = $ array [ 'campaign' ] ; $ this -> getLogger ( ) -> info ( 'Editing Campaign ID ' . $ this -> campaignId ) ; $ response = $ this -> doPut ( $ this -> url . '/' . $ this -> campaignId , $ array ) ; $ this -> getLogger ( ) -> debug ( 'Passing the response to Hydrate' ) ; return $ this -> hydrate ( $ response ) ; }
Edit campaign and change its name to the specified one.

@param string $campaign name of the campaign
@return XiboCampaign
Edit campaign and change its name to the specified one .