public function deleteUser($args)
 {
     $body = "";
     foreach ($args['filter'] as $key => $arg) {
         $body .= '<ns1:' . $key . '>' . $arg . '</ns1:' . $key . '>';
     }
     return parent::buildBody("deleteUser", "User", $body);
 }
 public function getGrades($args)
 {
     $body = '<ns1:courseId>' . $args['courseId'] . '</ns1:courseId>';
     $body .= '<ns1:filter>';
     foreach ($args['filter'] as $key => $arg) {
         if (!is_array($arg)) {
             $body .= '<ns1:' . $key . '>' . $arg . '</ns1:' . $key . '>';
         } else {
             foreach ($arg as $sub_arg) {
                 $body .= '<ns1:' . $key . '>' . $sub_arg . '</ns1:' . $key . '>';
             }
         }
     }
     $body .= '</ns1:filter>';
     return parent::buildBody("getGrades", "Gradebook", $body);
 }
 public function __call($method, $args = null)
 {
     return parent::buildBody($method, 'Context', $args[0]);
 }
예제 #4
0
 public function __call($method, $args = null)
 {
     return parent::buildBody($method, 'Gradebook', $args[0]);
 }
 public function __call($method, $args = null)
 {
     return parent::buildBody($method, 'Announcement', $args[0]);
 }
 public function __call($method, $args = null)
 {
     return parent::buildBody($method, 'CourseMembership', $args[0]);
 }
 public function __call($method, $args = null)
 {
     return parent::buildBody($method, "Course", $args[0]);
 }