Added description of new interface method [HFP-277]

improved-embed-and-download
Paal Joergensen 2016-12-13 10:33:59 +01:00
parent 0a23dc043d
commit e69a81f403
1 changed files with 9 additions and 1 deletions

View File

@ -559,7 +559,15 @@ interface H5PFrameworkInterface {
*/
public function afterExportCreated();
public function hasPermission($permission, $content_id = NULL);
/**
* Check if user has permissions to an action
*
* @method hasPermission
* @param [H5PPermission] $permission Permission type, ref H5PPermission
* @param [int] $id Id need by platform to determine permission
* @return boolean
*/
public function hasPermission($permission, $id = NULL);
}
/**