* Name of session if we want unique scope, used only by Controller_Simple.
* @param bool $addSequence
* Should we add a unique sequence number to the end of the key.
- * @param bool $ignoreKey
+ * @param bool $ignoreKey
* Should we not set a qfKey for this controller (for standalone forms).
*
* @internal param bool $whether controller is modal
}
}
- // if the request has a reset value, initialize the controller session
+ // if the request has a reset value, initialize the controller session
if (!empty($_GET['reset'])) {
$this->reset();
// and created the scope etc
$this->set('qfKey', $this->_key);
-
// also retrieve and store destination in session
$this->_destination = CRM_Utils_Request::retrieve(
'civicrmDestination',
* Helper function to add all the needed default actions. Note that the framework
* redefines all of the default QFC actions
*
- * @param string directory to store all the uploaded files
- * @param array names for the various upload buttons (note u can have more than 1 upload)
+ * @param string directory to store all the uploaded files
+ * @param array names for the various upload buttons (note u can have more than 1 upload)
*
*
* @return void
$ext = CRM_Extension_System::singleton()->getMapper();
if ($ext->isExtensionClass($className)) {
- require_once ($ext->classToPath($className));
+ require_once $ext->classToPath($className);
}
else {
- require_once (str_replace('_', DIRECTORY_SEPARATOR, $className) . '.php');
+ require_once str_replace('_', DIRECTORY_SEPARATOR, $className) . '.php';
}
$$stateName = new $className($stateMachine->find($className), $action, 'post', $formName);
if ($title) {
*
* @return void
*/
- public function process() {}
+ public function process() {
+ }
/**
* Store the variable with the value in the form scope
*
- * @param string|array $name name of the variable or an assoc array of name/value pairs
- * @param mixed $value value of the variable if string
+ * @param string|array $name name of the variable or an assoc array of name/value pairs
+ * @param mixed $value
+ * Value of the variable if string.
*
*
* @return void
/**
* Get the variable from the form scope
*
- * @param string $name : name of the variable
+ * @param string $name
+ * : name of the variable.
*
*
* Create the header for the wizard from the list of pages
* Store the created header in smarty
*
- * @param string $currentPageName name of the page being displayed
+ * @param string $currentPageName
+ * Name of the page being displayed.
*
* @return array
*/
* Assign value to name in template
*
* @param string $var
- * @param mixed $value value of varaible
+ * @param mixed $value
+ * Value of varaible.
*
* @return void
*/
* Assign value to name in template by reference
*
* @param string $var
- * @param mixed $value (reference) value of varaible
+ * @param mixed $value
+ * (reference) value of varaible.
*
* @return void
*/
* Appends values to template variables
*
* @param array|string $tpl_var the template variable name(s)
- * @param mixed $value the value to append
+ * @param mixed $value
+ * The value to append.
* @param bool $merge
*/
- public function append($tpl_var, $value=NULL, $merge=FALSE) {
+ public function append($tpl_var, $value = NULL, $merge = FALSE) {
self::$_template->append($tpl_var, $value, $merge);
}
*
* @return array
*/
- public function get_template_vars($name=null) {
+ public function get_template_vars($name = NULL) {
return self::$_template->get_template_vars($name);
}
/**
* Setter for embedded
*
- * @param boolean $embedded
+ * @param bool $embedded
*
* @return void
*/
/**
* Setter for skipRedirection
*
- * @param boolean $skipRedirection
+ * @param bool $skipRedirection
*
* @return void
*/
/**
* Setter for print
*
- * @param boolean $print
+ * @param bool $print
*
* @return void
*/