Exemplo n.º 1
0
 function SistemaAulaUsersReturns()
 {
     parent::__construct(new external_single_structure(array('id' => new external_value(PARAM_INT, 'user id'), 'idnumber' => new external_value(PARAM_INT, 'user id for integration'), 'username' => new external_value(PARAM_RAW, 'user name'))));
 }
Exemplo n.º 2
0
 /**
  * Constructor
  *
  * @since Moodle 2.3
  */
 public function __construct($itemdesc = 'item', $itemiddesc = 'item id', $warningcodedesc = 'the warning code can be used by the client app to implement specific behaviour')
 {
     parent::__construct(new external_single_structure(array('item' => new external_value(PARAM_TEXT, $itemdesc, VALUE_OPTIONAL), 'itemid' => new external_value(PARAM_INT, $itemiddesc, VALUE_OPTIONAL), 'warningcode' => new external_value(PARAM_ALPHANUM, $warningcodedesc), 'message' => new external_value(PARAM_TEXT, 'untranslated english message to explain the warning')), 'warning'), 'list of warnings', VALUE_OPTIONAL);
 }
Exemplo n.º 3
0
 /**
  * Constructor
  * @param string $desc Description for the multiple structure.
  * @param int $required The type of value (VALUE_REQUIRED OR VALUE_OPTIONAL).
  */
 public function __construct($desc = 'List of files.', $required = VALUE_REQUIRED)
 {
     parent::__construct(new external_single_structure(array('filename' => new external_value(PARAM_FILE, 'File name.', VALUE_OPTIONAL), 'filepath' => new external_value(PARAM_PATH, 'File path.', VALUE_OPTIONAL), 'filesize' => new external_value(PARAM_INT, 'File size.', VALUE_OPTIONAL), 'fileurl' => new external_value(PARAM_URL, 'Downloadable file url.', VALUE_OPTIONAL), 'timemodified' => new external_value(PARAM_INT, 'Time modified.', VALUE_OPTIONAL), 'mimetype' => new external_value(PARAM_RAW, 'File mime type.', VALUE_OPTIONAL)), 'File.'), $desc, $required);
 }
Exemplo n.º 4
0
 function SistemaAulaGradesReturn()
 {
     parent::__construct(new external_single_structure(array('userId' => new external_value(PARAM_INT, "Id do Usuário no qual a grade pertence", VALUE_REQUIRED), 'grade' => new external_value(PARAM_FLOAT, "A nota final do usuário", VALUE_REQUIRED, -1)), 'Grade com detalhes da avaliação ou nota final do usuário.'));
 }