| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
-*/
+ */
/**
*
* @param array $hide
* Initial value of hide array.
*
- * @return \CRM_Core_ShowHideBlocks the newly created object@access public
+ * @return \CRM_Core_ShowHideBlocks the newly created object
*/
public function __construct($show = NULL, $hide = NULL) {
if (!empty($show)) {
* Load icon vars used in hide and show links
*
* @return void
- * @static
*/
public static function setIcons() {
if (!isset(self::$_showIcon)) {
* @param string $text
* @param string $js
*
- * @return string the formatted html link
+ * @return string
+ * the formatted html link
*/
public static function linkHtml($name, $href, $text, $js) {
return '<a name="' . $name . '" id="' . $name . '" href="' . $href . '" ' . $js . ">$text</a>";
*
* @param bool $assign
*
- * @static
*
* @return void
*/
$hideCode = "cj('#id_{$prefix}').hide(); cj('#id_{$prefix}_show').show(); return false;";
self::setIcons();
- $values = array();
+ $values = array();
$values['show'] = self::linkHtml("${prefix}_show", "#${prefix}_hide", self::$_showIcon . $showLinkText, "onclick=\"$showCode\"");
$values['hide'] = self::linkHtml("${prefix}_hide", "#${prefix}", self::$_hideIcon . $hideLinkText, "onclick=\"$hideCode\"");
);
}
}
+
}