本文整理匯總了PHP中backup_nested_element::__construct方法的典型用法代碼示例。如果您正苦於以下問題:PHP backup_nested_element::__construct方法的具體用法?PHP backup_nested_element::__construct怎麽用?PHP backup_nested_element::__construct使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類backup_nested_element
的用法示例。
在下文中一共展示了backup_nested_element::__construct方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: __construct
/**
* Constructor - instantiates one backup_optigroup_element
*
* @param string $name of the element
* @param array $final_elements this element will handle (optional, defaults to null)
* @param string $condition_param param (path) we are using as source for comparing (optional, defaults to null)
* @param string $condition_value value we are comparing to (optional, defaults to null)
*/
public function __construct($name, $final_elements = null, $conditionparam = null, $conditionvalue = null)
{
parent::__construct($name, null, $final_elements);
$this->set_condition($conditionparam, $conditionvalue);
}
示例2: __construct
/**
* Constructor - instantiates one backup_nested_element, specifying its basic info.
*
* @param string $name name of the element
* @param array $attributes attributes this element will handle (optional, defaults to null)
* @param array $finalelements this element will handle (optional, defaults to null)
*/
public function __construct($name, $attributes = null, $finalelements = null)
{
global $DB;
parent::__construct($name, $attributes, $finalelements);
$this->sourcedb = $DB;
}