DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:attribute

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
plugin:attribute [2016-01-26 17:38]
Aleksandr
plugin:attribute [2018-08-06 08:24] (current)
wilminator
Line 7: Line 7:
 type       : Helper type       : Helper
 lastupdate : 2016-01-06 lastupdate : 2016-01-06
-compatible : 2015-08-10a "​Detritus"​+compatible : 2018-04-22 "​Greebo", ​2015-08-10a "​Detritus", 2017-02-19 "​Frusterick Manners",​ 2016-06-26 "​Elenor Of Tsort" ​
 depends ​   :  depends ​   : 
 conflicts ​ :  conflicts ​ : 
Line 23: Line 23:
 ===== Installation ===== ===== Installation =====
  
-Install ​the plugin using the [[plugin:plugin|Plugin ​Manager]] ​and the download URL above, which points to latest version of the plugin. Refer to [[:​Plugins]] on how to install plugins manually.+Search and install ​the plugin using the [[plugin:extension|Extension ​Manager]]. Refer to [[:​Plugins]] on how to install plugins manually.
  
 After installing the plugin, it will work without additional configuration. ​ However the two existing options allow the wiki administrator to choose a location to store the user data and whether to disable compression. ​ The admin should only disable compression when developing a plugin that uses the attribute module because user data is then exposed in plaintext. ​ It is strongly advised to store user data in a location that is not served by the web server; this can only be achieved by web server configuration,​ eg .htaccess files and the like. After installing the plugin, it will work without additional configuration. ​ However the two existing options allow the wiki administrator to choose a location to store the user data and whether to disable compression. ​ The admin should only disable compression when developing a plugin that uses the attribute module because user data is then exposed in plaintext. ​ It is strongly advised to store user data in a location that is not served by the web server; this can only be achieved by web server configuration,​ eg .htaccess files and the like.
Line 73: Line 73:
  
 <​code>​public function enumerateAttributes($namespace,​ $user = null)</​code>​ <​code>​public function enumerateAttributes($namespace,​ $user = null)</​code>​
-Generates a list of users that have assigned ​attributes ​in the specified namespace. +Generates a list of attributes ​that have assigned ​values for the specified user in  
-Returns false on failure or an array of of attribute names the user has.+the specified namespace. Returns false on failure or an array of of attribute names  
 +the user has.
  
 <​code>​public function exists($namespace,​ $attribute, $user = null)</​code>​ <​code>​public function exists($namespace,​ $attribute, $user = null)</​code>​
plugin/attribute.1453826318.txt.gz · Last modified: 2016-01-26 17:38 by Aleksandr