*/
class DirectoryPlugin extends Plugin
{
-
private $dir = null;
/**
$nav->out->menuItem(
common_local_url('userdirectory'),
- _m('Directory'),
- _m('User Directory'),
+ // TRANS: Menu item text for user directory.
+ _m('MENU','Directory'),
+ // TRANS: Menu item title for user directory.
+ _m('User Directory.'),
$actionName == 'userdirectory',
'nav_directory'
);
'version' => STATUSNET_VERSION,
'author' => 'Zach Copley',
'homepage' => 'http://status.net/wiki/Plugin:Directory',
+ // TRANS: Plugin description.
'rawdescription' => _m('Add a user directory.')
);
* @license http://www.fsf.org/licensing/licenses/agpl-3.0.html GNU Affero General Public License version 3.0
* @link http://status.net/
*/
-
class DiskCachePlugin extends Plugin
{
var $root = '/tmp';
*
* @return boolean hook success
*/
-
function onStartCacheGet(&$key, &$value)
{
$filename = $this->keyToFilename($key);
*
* @return boolean hook success
*/
-
function onStartCacheSet(&$key, &$value, &$flag, &$expiry, &$success)
{
$filename = $this->keyToFilename($key);
*
* @return boolean hook success
*/
-
function onStartCacheDelete(&$key, &$success)
{
$filename = $this->keyToFilename($key);
'author' => 'Evan Prodromou',
'homepage' => 'http://status.net/wiki/Plugin:DiskCache',
'rawdescription' =>
+ // TRANS: Plugin description.
_m('Plugin to implement cache interface with disk files.'));
return true;
}