You are here

function cmfcClassesCoreStandAlone::setOptions in Calendar Systems 6

Same name and namespace in other branches
  1. 8 calendar/lib/classesCore.class.inc.php \cmfcClassesCoreStandAlone::setOptions()
  2. 8.2 calendar/lib/classesCore.class.inc.php \cmfcClassesCoreStandAlone::setOptions()
  3. 6.3 calendar/lib/classesCore.class.inc.php \cmfcClassesCoreStandAlone::setOptions()
  4. 7.3 calendar/lib/classesCore.class.inc.php \cmfcClassesCoreStandAlone::setOptions()
  5. 7 calendar/lib/classesCore.class.inc.php \cmfcClassesCoreStandAlone::setOptions()
  6. 7.2 calendar/lib/classesCore.class.inc.php \cmfcClassesCoreStandAlone::setOptions()

* @NOTICE child classed definition should apply the byReference version of function * to pass by reference to work correctly * @NOTICE $options[$name] is require for PHP4,PHP5 compatibility *

Parameters

$options: * @param $merge * @return unknown_type

1 call to cmfcClassesCoreStandAlone::setOptions()
cmfcCalendarV1::__construct in calendar/v1/calendarV1.class.inc.php

File

calendar/lib/classesCore.class.inc.php, line 148

Class

cmfcClassesCoreStandAlone
all cmf classes inherit from this class

Code

function setOptions($options, $merge = false) {
  foreach ($options as $name => $value) {
    $r = $this
      ->setOption($name, $options[$name], $merge);
    if ($this
      ->isError($r)) {
      return $r;
    }
  }
}