本文整理汇总了PHP中ElggFile::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP ElggFile::__construct方法的具体用法?PHP ElggFile::__construct怎么用?PHP ElggFile::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ElggFile
的用法示例。
在下文中一共展示了ElggFile::__construct方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
public function __construct($guid = null)
{
if ($guid && !is_object($guid)) {
$guid = get_entity_as_row($guid);
}
parent::__construct($guid);
}
示例2: __construct
/**
* Loads an ElggPodcast entity.
*
* @param int $guid GUID of the ElggPodcast object
*/
public function __construct($guid = null)
{
parent::__construct($guid);
if (is_numeric($guid)) {
// $guid is a GUID so load
if (!$this->load($guid)) {
throw new IOException(elgg_echo('IOException:FailedToLoadGUID', array(get_class(), $guid)));
}
}
}
示例3: __construct
/**
* loads or create new IzapObject
* @global <type> $CONFIG
* @param $guid
*/
public function __construct($guid = null)
{
global $CONFIG;
parent::__construct($guid);
$this->_post = $CONFIG->post_byizap;
if (is_numeric($guid) && $guid > 0) {
$this->_guid = $guid;
} else {
$this->_guid = $this->_post->attributes['guid'];
}
}
示例4: __construct
public function __construct($guid = null)
{
parent::__construct($guid);
// set some initial values so that old videos can work
if (empty($this->videosrc)) {
$this->videosrc = $this->IZAPSETTINGS->filesPath . 'file/' . $this->guid . '/' . friendly_title($this->title) . '.flv';
}
// sets the defalut value for the old videos, if not set yet
if (empty($this->converted)) {
$this->converted = 'yes';
}
}
示例5: __construct
public function __construct($guid = null)
{
parent::__construct($guid);
}
示例6: __construct
public function __construct($row = null)
{
parent::__construct($row);
}
示例7: __construct
/**
*
* @param integer $guid
*
* @version 5.0
*/
public function __construct($guid = NULL)
{
parent::__construct($guid);
// set some initial values so that old videos can work
}