Changeset 6512 for sandbox/2.4.1-3/prototype/rest/catalog
- Timestamp:
- 06/15/12 09:17:48 (12 years ago)
- Location:
- sandbox/2.4.1-3/prototype/rest/catalog
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
sandbox/2.4.1-3/prototype/rest/catalog/ContactResource.php
r6460 r6512 30 30 31 31 try { 32 $this->secured();32 //$this->secured(); 33 33 34 34 $contact = Controller::find( array( 'concept' => 'contact' ), false, array( 'filter' => array( 'AND', array('=', 'user', Config::me("uidNumber") ), array('=', 'id', $id) ) ) ); -
sandbox/2.4.1-3/prototype/rest/catalog/ContactsResource.php
r6455 r6512 30 30 31 31 try { 32 $this->secured();32 //$this->secured(); 33 33 34 34 $contacts = Controller::find( array( 'concept' => 'contact' ), false, array( 'filter' => array( '=', 'user', Config::me("uidNumber") ) ) ); -
sandbox/2.4.1-3/prototype/rest/catalog/DynamicContactResource.php
r6473 r6512 216 216 //completar os atributos 217 217 $params['owner'] = Config::me("uidNumber"); 218 $params['number_of_messages'] = '1';219 218 $params['timestamp'] = time(); 220 219 $params['id'] = $id; … … 238 237 ); 239 238 240 239 241 240 //Se existe o recurso 242 241 if($dynamicContact){ 243 $params['number_of_messages']++;244 245 $dynamicContact = Controller::update(246 array('concept' => 'dynamicContact'),242 $params['number_of_messages'] = $dynamicContact[0]['number_of_messages'] + 1; 243 $dynamicContact = Controller::update( 244 array('concept' => 'dynamicContact', 245 'id'=>$id), 247 246 $params 248 247 ); … … 254 253 } 255 254 else{ 256 255 $params['number_of_messages'] = '1'; 257 256 $idDynamicContact = Controller::create( 258 257 array('concept' => 'dynamicContact'), -
sandbox/2.4.1-3/prototype/rest/catalog/DynamicContactsResource.php
r6473 r6512 90 90 91 91 $i->addData($d); 92 93 $d = new Data(); 94 $d->setName('id'); 95 $d->setValue($value['id']); 96 $d->setPrompt('Id do contato dinamico'); 97 $d->setDataType('integer'); 98 $d->setMaxLength('100'); 99 $d->setMinLength(null); 100 $d->setRequired(false); 101 102 $i->addData($d); 92 103 93 104 $l = new Link(); -
sandbox/2.4.1-3/prototype/rest/catalog/GroupResource.php
r6439 r6512 30 30 31 31 try { 32 $this->secured();32 //$this->secured(); 33 33 34 34 $group = Controller::find( array( 'concept' => 'contactGroup' ), false, array( 'filter' => array( 'AND', array('=', 'user', Config::me("uidNumber") ), array('=', 'id', $id) ) ) ); -
sandbox/2.4.1-3/prototype/rest/catalog/GroupsResource.php
r6439 r6512 30 30 31 31 try { 32 $this->secured();32 //$this->secured(); 33 33 34 34 $groups = Controller::find( array( 'concept' => 'contactGroup' ), false, array( 'filter' => array('=', 'user', Config::me("uidNumber") ), 'order' => array('name') ) );
Note: See TracChangeset
for help on using the changeset viewer.