/** * @param array $params Configuration parameters: * - mime_id: (string) The MIME ID of the message part with the key. * - muid: (string) MUID of the message. */ public function __construct(array $params = array()) { // The mime id of the form created by Horde_Core_Mime_Viewer_Vcard // Don't like hard coding this, but since it's in Horde_Core we don't // have access to change it/read it. $params['id'] = 'vcard_import'; parent::__construct($params); }
/** * @param array $params OPTIONAL configuration parameters: * - locales: (array) List of supported locales. * - states: (array) TODO * - targetId: (string) TODO */ public function __construct(array $params = array()) { global $registry; if (!isset($params['targetId'])) { $params['targetId'] = strval(new Horde_Support_Randomid()); } if (!isset($params['locales'])) { $key_list = array_keys($registry->nlsconfig->spelling); asort($key_list, SORT_LOCALE_STRING); $params['locales'] = array(); foreach ($key_list as $lcode) { $params['locales'][] = array('l' => $registry->nlsconfig->languages[$lcode], 'v' => $lcode); } } parent::__construct($params); }
/** * @param array $params Configuration parameters: * - mime_id: (string) The MIME ID of the message part with the key. * - muid: (string) MUID of the message. */ public function __construct(array $params = array()) { parent::__construct($params); }
/** * @param array $params Configuration parameters: * - cols: (integer) Number of columns. * - dataid: (string) Data ID passed to the handler. * - rows: (integer) Number of rows. */ public function __construct(array $params = array()) { /* Set up some defaults */ $params = array_merge(array('cols' => 20, 'dataid' => '', 'rows' => 2), $params); parent::__construct($params); }