return $this->_columns;
}
- /**
- * @param $title
- */
- public function setTitle($title) {
- if ($title) {
- CRM_Utils_System::setTitle($title);
- }
- else {
- CRM_Utils_System::setTitle(ts('Search'));
- }
- }
-
/**
* @return null
*/
protected $_stateID;
+ /**
+ * The title of this form
+ * @var string
+ */
+ protected $_title = NULL;
+
/**
* Class constructor.
*
}
/**
- * Set the title.
+ * Setter function for title.
*
* @param string $title
+ * The title of the form.
*/
public function setTitle($title) {
- if ($title) {
- CRM_Utils_System::setTitle($title);
- }
- else {
- CRM_Utils_System::setTitle(ts('Search'));
+ if (empty($title)) {
+ $title = ts('Search');
}
+ $this->_title = $title;
+ CRM_Utils_System::setTitle($title);
}
/**
return NULL;
}
- /**
- * @param $title
- */
- public function setTitle($title) {
- if ($title) {
- CRM_Utils_System::setTitle($title);
- }
- else {
- CRM_Utils_System::setTitle(ts('Search'));
- }
- }
-
/**
* @param string $tableAlias
*/
return $this->_columns;
}
- /**
- * @param $title
- */
- public function setTitle($title) {
- if ($title) {
- CRM_Utils_System::setTitle($title);
- }
- else {
- CRM_Utils_System::setTitle(ts('Search'));
- }
- }
-
/**
* @return null
*/
return 'CRM/Contact/Form/Search/Custom.tpl';
}
- /**
- * @param $title
- */
- public function setTitle($title) {
- if ($title) {
- CRM_Utils_System::setTitle($title);
- }
- else {
- CRM_Utils_System::setTitle(ts('Search'));
- }
- }
-
/**
* @return mixed
*/
return $this->_columns;
}
- /**
- * @param $title
- */
- public function setTitle($title) {
- if ($title) {
- CRM_Utils_System::setTitle($title);
- }
- else {
- CRM_Utils_System::setTitle(ts('Search'));
- }
- }
-
/**
* @param string $tableAlias
*/
public function alterRow(&$row) {
}
- /**
- * @param $title
- */
- public function setTitle($title) {
- if ($title) {
- CRM_Utils_System::setTitle($title);
- }
- }
-
/**
* @param int|array $limit
* @return string
return 'CRM/Contact/Form/Search/Custom.tpl';
}
- /**
- * Set title on search.
- *
- * @param string $title
- */
- public function setTitle($title) {
- if ($title) {
- CRM_Utils_System::setTitle($title);
- }
- else {
- CRM_Utils_System::setTitle(ts('Search'));
- }
- }
-
/**
* Build ACL clause.
*
* @param $title
*/
public function setTitle($title) {
- if ($title) {
- CRM_Utils_System::setTitle($title);
- }
- else {
- CRM_Utils_System::setTitle(ts('Export Price Set Info for an Event'));
+ if (empty($title)) {
+ $title = ts('Export Price Set Info for an Event');
}
+ parent::setTitle($title);
}
/**
public function alterRow(&$row) {
}
- /**
- * @param $title
- */
- public function setTitle($title) {
- if ($title) {
- CRM_Utils_System::setTitle($title);
- }
- else {
- CRM_Utils_System::setTitle(ts('Search'));
- }
- }
-
/**
* Validate form input.
*
return 'CRM/Contact/Form/Search/Custom.tpl';
}
- /**
- * @param $title
- */
- public function setTitle($title) {
- if ($title) {
- CRM_Utils_System::setTitle($title);
- }
- else {
- CRM_Utils_System::setTitle(ts('Search'));
- }
- }
-
/**
* @return mixed
*/
$row['sort_name'] .= ' ( altered )';
}
- /**
- * @param $title
- */
- public function setTitle($title) {
- if ($title) {
- CRM_Utils_System::setTitle($title);
- }
- else {
- CRM_Utils_System::setTitle(ts('Search'));
- }
- }
-
/**
* @param string $tableAlias
*/
return $this->_columns;
}
- /**
- * @param $title
- */
- public function setTitle($title) {
- if ($title) {
- CRM_Utils_System::setTitle($title);
- }
- else {
- CRM_Utils_System::setTitle(ts('Search'));
- }
- }
-
/**
* @return null
*/
return 'CRM/Contact/Form/Search/Custom.tpl';
}
- /**
- * @param $title
- */
- public function setTitle($title) {
- if ($title) {
- CRM_Utils_System::setTitle($title);
- }
- else {
- CRM_Utils_System::setTitle(ts('Search'));
- }
- }
-
/**
* @param string $tableAlias
*/