XMLWordPrintable

    Details

      Description

      Follow http://docs.moodle.org/dev/How_to_contribute_a_web_service_function_to_core

      This is how I see those methods implemented (Fred):

      create_contacts
          Add a contact to the 'address book'
          @param array(int User ID, ...)
          @return warnings
       
      delete_contacts
          Remove a contact to the 'address book'
          @param array(int User ID, ...)
          @return void
       
      block_contacts
          Block a contact
          @param array(int User ID, ...)
          @return warnings
       
      unblock_contacts
          Unblock a contact
          @param  array(int User ID, ...)
          @return void
       
      get_contacts
          List the contacts
          @return array(
              array(
                  online contacts => array(
                      array(
                          user ID,
                          fullname,
                          picture,
                          picture small,
                          unread messages count
                      )
                  ),
                  offline contacts => array(
                      array(
                          user ID,
                          fullname,
                          picture,
                          picture small,
                          unread messages count
                      )
                  ),
                  strangers => array(
                      array(
                          user ID,
                          fullname,
                          picture,
                          picture small,
                          unread messages count
                      )
                  )
              )
          )
       
      search_contacts
          Search for contacts among the users
          @param string name 
          @param bool only in my courses (default false)
          @return array(
                      array(
                          user ID,
                          fullname,
                          picture,
                          picture small
                      )
                  )

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              fred Frédéric Massart
              Reporter:
              jerome Jérôme Mouneyrac
              Peer reviewer:
              Jérôme Mouneyrac
              Integrator:
              Dan Poltawski
              Tester:
              Mark Nelson
              Participants:
              Component watchers:
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón, Juan Leyva, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                14/May/13