*
* @param boolean $flatFormat this is true if you want simple associated array of contact dashlets
*
+ * @param null $contactID
+ *
* @return array $dashlets array of dashlets
* @access public
* @static
return $defaultDashlet ? $defaultDashlet : $dashlets;
}
+ /**
+ * @param $hasDashlets
+ *
+ * @return bool
+ * @throws CiviCRM_API3_Exception
+ */
static function initializeDashlets($hasDashlets) {
$getDashlets = civicrm_api3("Dashboard", "get", array('domain_id' => CRM_Core_Config::domainID()));
$contactID = CRM_Core_Session::singleton()->get('userID');
/**
* Function to check dashlet permission for current user
*
- * @param string permission string
+ * @param $permission
+ * @param $operator
+ *
+ * @internal param \permission $string string
*
* @return boolean true if use has permission else false
*/
*
* @param array $columns associated array
*
+ * @param null $contactID
+ *
+ * @throws RuntimeException
* @return void
* @access public
* @static
return $dashlet;
}
+ /**
+ * @param $url
+ *
+ * @return string
+ */
static function getDashletName($url) {
$urlElements = explode('/', $url);
if ($urlElements[1] == 'dashlet') {
/**
* Delete Dashlet
*
+ * @param $dashletID
+ *
* @return void
* @static
*/