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

              fred Frédéric Massart
              jerome Jérôme Mouneyrac
              Jérôme Mouneyrac Jérôme Mouneyrac
              Dan Poltawski Dan Poltawski
              Mark Nelson Mark Nelson
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Laurent David, Raquel Ortega, Sara Arjona (@sarjona), Juan Leyva, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Laurent David, Raquel Ortega, Sara Arjona (@sarjona)
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                14/May/13