+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
+--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2014 |
+ | Copyright CiviCRM LLC (c) 2004-2015 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
-*/
+ */
/**
*
* @package CRM
- * @copyright CiviCRM LLC (c) 2004-2014
+ * @copyright CiviCRM LLC (c) 2004-2015
* $Id$
*
*/
static $_showIcon, $_hideIcon;
/**
- * The array of ids of blocks that will be shown
+ * The array of ids of blocks that will be shown.
*
* @var array
*/
protected $_show;
/**
- * The array of ids of blocks that will be hidden
+ * The array of ids of blocks that will be hidden.
*
* @var array
*/
protected $_hide;
/**
- * Class constructor
+ * Class constructor.
*
* @param array $show
* Initial value of show array.
* Initial value of hide array.
*
* @return \CRM_Core_ShowHideBlocks the newly created object
- * @access public
*/
public function __construct($show = NULL, $hide = NULL) {
if (!empty($show)) {
}
/**
- * Load icon vars used in hide and show links
+ * Load icon vars used in hide and show links.
*
* @return void
- * @static
*/
public static function setIcons() {
if (!isset(self::$_showIcon)) {
}
/**
- * Add the values from this class to the template
+ * Add the values from this class to the template.
*
* @return void
*/
}
/**
- * Add a value to the show array
+ * Add a value to the show array.
*
* @param string $name
* Id to be added.
}
/**
- * Add a value to the hide array
+ * Add a value to the hide array.
*
* @param string $name
* Id to be added.
}
/**
- * Create a well formatted html link from the smaller pieces
+ * Create a well formatted html link from the smaller pieces.
*
* @param string $name
* Name of the link.
}
/**
- * Create links that we can use in the form
+ * Create links that we can use in the form.
*
* @param CRM_Core_Form $form
* The form object.
*
* @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\"");
}
/**
- * Create html link elements that we can use in the form
+ * Create html link elements that we can use in the form.
*
* @param CRM_Core_Form $form
* The form object.
);
}
}
+
}