Curriculum includes some global "helper" PHP functions.
helper function for selects. If input is an array, it returns the first value of array else it returns the input.
Traverse an elements children and collect those nodes that have the tagname specified in $tagName. Non-recursive
Convert relative filepaths to absolute paths.
translate to Str::singular
translate to Str::startsWith()
translate to Str::endsWith()
translate to Str::camel()
translato to Str::limit()
translate to Str::contains()
Check if $directory is empty. Returns true if empty, null if $directory not exists.
Returns array of files found in $directory.
Returns the number of users who were online now.
Returns the number of users who were online today.
Returns true if user has admin role.
Returns true if user has creator role.
Returns true if user has schooladmin role.
Returns true if user has teacher role.
Searches for media-sources in the description of given model. Also sets subscription for every media found.
Replaces language specific characters with A-Z/a-z equivalent and special characters with an empty string. Returns string with replaced characters.