* whether to force a reconstruction.
*
* @return CRM_Core_Config
- * @static
*/
public static function &singleton($loadFromDB = TRUE, $force = FALSE) {
if (self::$_singleton === NULL || $force) {
* @param string $driver
* 'CRM_Mailing_BAO_Spool' or a name suitable for Mail::factory().
* @param array $params
- * @return Mail (More specifically, a class which implements the "send()" function)
+ * @return object
+ * More specifically, a class which implements the "send()" function
*/
public static function _createMailer($driver, $params) {
if ($driver == 'CRM_Mailing_BAO_Spool') {
// Whether we delete/create or simply preserve directories, we should
// certainly make sure the restrictions are enforced.
- foreach (array($this->templateCompileDir, $this->uploadDir, $this->configAndLogDir, $this->customFileUploadDir) as $dir) {
+ foreach (array(
+ $this->templateCompileDir,
+ $this->uploadDir,
+ $this->configAndLogDir,
+ $this->customFileUploadDir
+ ) as $dir) {
if ($dir && is_dir($dir)) {
CRM_Utils_File::restrictAccess($dir);
}
* @param array (reference ) the parameters that need a value
*
* @return boolean
- * @static
*/
public static function check(&$config, &$required) {
foreach ($required as $name) {
CRM_Core_DAO::executeQuery($query);
}
- // This method should initialize auth sources
+ /**
+ * This method should initialize auth sources
+ */
public function initAuthSrc() {
$session = CRM_Core_Session::singleton();
if ($session->get('userID') && !$session->get('authSrc')) {