Horde Registry
Registry Links
Registry Calls


The Registry lets you generate links to other apps


<?php

require_once HORDE_BASE '/lib/Registry.php';
$registry = &Registry::singleton();

// Check to see if the functionality we want is there
if (!$registry->hasMethod('mail/compose')) {
    echo 
'no mail/compose method defined';
    exit;
}

// Generate the link
$registry->plink('mail/compose', array('to' => 'foo@example.com''subject' => 'bar'));

?>
  

  • Links will be to the application that provides the functionality.
  • Any arguments that the target script needs (headers for an email, for instance) will be filled out of the second argument to link().