Skip to content

Instantly share code, notes, and snippets.

View fabiomsouto's full-sized avatar
🧮

Fábio Souto fabiomsouto

🧮
View GitHub Profile
@fabiomsouto
fabiomsouto / .gitignore
Last active May 28, 2020 22:11 — forked from ELLIOTTCABLE/.gitignore
BASH Script to keep Route53 updated with your current external IP address
*.ip
*.log
@fabiomsouto
fabiomsouto / externallib.php
Created May 7, 2012 15:18
get_users attempt with fullname/email search
<?php
/**
* Returns description of method parameters
*
* @return external_function_parameters
* @since Moodle 2.3
*/
public static function get_users_parameters() {
return new external_function_parameters(
array(
@fabiomsouto
fabiomsouto / externallib.php
Created April 30, 2012 16:15
new implementation of core_user_get_users
<?php
public static function get_users_parameters() {
return new external_function_parameters(
array(
'criteria' => new external_multiple_structure(
new external_single_structure(
array(
'key' => new external_value(PARAM_ALPHA, 'the user column to search'),
'value' => new external_value(PARAM_TEXT, 'the value to match')
)