}
if (is_object($dao) && property_exists($dao, $value['idCol'])) {
- $val = $dao->$value['idCol'];
+ $val = $dao->{$value['idCol']};
if ($key == 'groups') {
$dao->groups = $this->convertGroupIDStringToLabelString($dao, $val);
return;
$dao->$idColumn = $val;
if ($key == 'state_province_name') {
- $dao->$value['pseudoField'] = $dao->$key = CRM_Core_PseudoConstant::stateProvinceAbbreviation($val);
+ $dao->{$value['pseudoField']} = $dao->$key = CRM_Core_PseudoConstant::stateProvinceAbbreviation($val);
}
else {
- $dao->$value['pseudoField'] = $dao->$key = CRM_Core_PseudoConstant::getLabel($baoName, $value['pseudoField'], $val);
+ $dao->{$value['pseudoField']} = $dao->$key = CRM_Core_PseudoConstant::getLabel($baoName, $value['pseudoField'], $val);
}
}
elseif ($value['pseudoField'] == 'state_province_abbreviation') {
}
$linkedDao = new $daoName();
- $linkedDao->$linfo['entity_id_col'] = $entityId;
- $linkedDao->$linfo['entity_table_col'] = $entityTable;
+ $linkedDao->{$linfo['entity_id_col']} = $entityId;
+ $linkedDao->{$linfo['entity_table_col']} = $entityTable;
$linkedDao->find();
while ($linkedDao->fetch()) {
CRM_Core_BAO_RecurringEntity::delEntity($linkedDao->id, $linkedTable, FALSE);
exit();
}
- if (substr(phpversion(), 0, 1) != 5) {
+ if (substr(phpversion(), 0, 1) < 5) {
echo phpversion() . ', ' . substr(phpversion(), 0, 1) . "\n";
echo "
CiviCRM requires a PHP Version >= 5
));
}
- $this->HTML_QuickForm_Controller($name, $modal);
+ parent::__construct($name, $modal);
$snippet = CRM_Utils_Array::value('snippet', $_REQUEST);
if ($snippet) {
$this->_name = CRM_Utils_String::getClassName(CRM_Utils_System::getClassName($this));
}
- $this->HTML_QuickForm_Page($this->_name, $method);
+ parent::__construct($this->_name, $method);
$this->_state =& $state;
if ($this->_state) {
*
* @return CRM_Core_Smarty
*/
- private function __construct() {
+ public function __construct() {
parent::__construct();
}
require_once str_replace('_', DIRECTORY_SEPARATOR, "CRM_" . $name[0] . "_BAO_" . $name[1]) . ".php";
$className = "CRM_{$name[0]}_BAO_{$name[1]}";
$bao = new $className();
- $bao->$name[2] = $financialAccountId;
+ $bao->{$name[2]} = $financialAccountId;
if ($bao->find(TRUE)) {
$check = TRUE;
}
// we need to make sure separators are trimmed
if ($diff == 'case_type_id') {
foreach (array('original', 'changed') as $var) {
- if (!empty($$var[$diff])) {
+ if (!empty(${$var[$diff]})) {
$holder =& $$var;
$val = explode(CRM_Case_BAO_Case::VALUE_SEPARATOR, $holder[$diff]);
$holder[$diff] = CRM_Utils_Array::value(1, $val);
foreach ($rows as $index => & $row) {
foreach ($row as $selectedfield => $value) {
if (array_key_exists($selectedfield, $alterfunctions)) {
- $rows[$index][$selectedfield] = $this->$alterfunctions[$selectedfield]($value, $row, $selectedfield, $altermap[$selectedfield]);
+ $rows[$index][$selectedfield] = $this->{$alterfunctions[$selectedfield]}($value, $row, $selectedfield, $altermap[$selectedfield]);
}
}
}
$this->initialize($params);
- $this->Pager_Sliding($params);
+ parent::__construct($params);
list($offset, $limit) = $this->getOffsetAndRowCount();
$start = $offset + 1;