/** * Create a New Group * * @todo CHECK THE API - might have been updated?? * The API states the signature of this method is: * * CreateGroup(int idList, int listGUID, string newGroupName) * * * @param type $newGroup * @return boolean */ public function creaGruppo($newGroup) { if (!is_object($this->soapClient)) { return false; } try { $this->soapClient->CreateGroup($newGroup); $this->printLastRequest(); $this->printLastResponse(); $returnCode = $this->readReturnCode('CreateGroup', 'ReturnCode'); if ($this->_config()->isLogEnabled($this->storeId)) { $this->_config()->dbLog(sprintf("Mailup: Create a new Group [%s] [List:%s] [%s]", $newGroup['newGroupName'], $newGroup['listGUID'], $returnCode)); } return $returnCode; } catch (SoapFault $soapFault) { Mage::log('SOAP error', 0); Mage::log($soapFault, 0); } }