本文整理汇总了PHP中Wiki::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP Wiki::__construct方法的具体用法?PHP Wiki::__construct怎么用?PHP Wiki::__construct使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Wiki
的用法示例。
在下文中一共展示了Wiki::__construct方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
/**
* This is the constructor
* @param $url The Project URL (forwarded to the parent class)
* @param $flickr_licenses_blacklist The list of Flickr licenses ID not allowed at Wiki
* @param $ipernity_licenses_blacklist The list of Ipernity licenses ID not allowed at Wiki
* @param $picasa_licenses_blacklist The list of Picasa licenses ID not allowed at Wiki
* @param $flickr_api_key The Flckr API key
* @param $ipernity_api_key The Ipernity API key
* @return void
**/
function __construct($url, $flickr_licenses_blacklist, $ipernity_licenses_blacklist, $picasa_licenses_blacklist, $flickr_api_key = null, $ipernity_api_key = null)
{
Wiki::__construct($url);
// Pass main parameter to parent Class' __construct()
$this->flickr_licenses_blacklist = $flickr_licenses_blacklist;
$this->ipernity_licenses_blacklist = $ipernity_licenses_blacklist;
$this->picasa_licenses_blacklist = $picasa_licenses_blacklist;
$this->flickr_api_key = $flickr_api_key;
$this->ipernity_api_key = $ipernity_api_key;
$this->site_url = parse_url($this->url);
$this->site_url = $this->site_url['scheme'] . '://' . $this->site_url['host'] . '/wiki/';
}
示例2: __construct
/**
* This is the constructor
* @param $url The Project URL (forwarded to the parent class)
* @return void
**/
function __construct($url, $mail_operator)
{
Wiki::__construct($url);
// Pass main parameter to parent Class' __construct()
$this->site_url = parse_url($this->url);
$this->site_url = $this->site_url['scheme'] . '://' . $this->site_url['host'] . '/wiki/';
$this->mail_operator = $mail_operator;
}