Moodle PHP Documentation 4.5
Moodle 4.5dev (Build: 20240606) (d3ae1391abe)
tiny_premium

Namespaces

namespace  tiny_premium
  
 
namespace  tiny_premium\external
  
 
namespace  tiny_premium\local
  
 
namespace  tiny_premium\privacy
  
 

Classes

class  tiny_premium\external\get_api_key
 
class  tiny_premium\local\admin_setting_tiny_premium_plugins
 
class  tiny_premium\manager
 
class  tiny_premium\plugininfo
 
class  tiny_premium\privacy\provider
 

Functions

 xmldb_tiny_premium_upgrade ($oldversion)
 Function to upgrade tiny_premium.
 

Variables

 $capabilities
 
 $functions
 
 $plugin = 2024041600
 
$plugin component = 'tiny_premium'
 
$plugin version = 2024042201
 

Detailed Description

Function Documentation

◆ xmldb_tiny_premium_upgrade()

xmldb_tiny_premium_upgrade ( $oldversion)

Function to upgrade tiny_premium.

Parameters
int$oldversionthe version we are upgrading from
Return values
boolresult

Variable Documentation

◆ $capabilities

$capabilities
Initial value:
= [
'tiny/premium:accesspremium' => [
'captype' => 'read',
'contextlevel' => CONTEXT_USER,
'archetypes' => [
'user' => CAP_ALLOW,
],
],
]
const CONTEXT_USER
User context level - one instance for each user describing what others can do to user.
Definition accesslib.php:124
const CAP_ALLOW
Allow permission, overrides CAP_PREVENT defined in parent contexts.
Definition accesslib.php:115

◆ $functions

$functions
Initial value:
= [
'tiny_premium_get_api_key' => [
'classname' => 'tiny_premium\external\get_api_key',
'methodname' => 'execute',
'description' => 'Get the Tiny Premium API key from Moodle',
'type' => 'read',
'capabilities' => '',
'ajax' => true,
],
]