本文整理汇总了PHP中Asset::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP Asset::__construct方法的具体用法?PHP Asset::__construct怎么用?PHP Asset::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Asset
的用法示例。
在下文中一共展示了Asset::__construct方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
function __construct($file_path)
{
# create and store data required for this asset
parent::__construct($file_path);
# create and store additional data required for this asset
$this->set_extended_data($file_path);
}
示例2: __construct
public function __construct($data, $language = null)
{
if (is_number($data)) {
$this->id = $data;
$db = \TMDB\Client::getInstance();
$data = $this->l1st($language);
}
parent::__construct($data);
}
示例3: __construct
public function __construct($redirectUrl = null, $AssetType = null)
{
parent::__construct();
$this->redirectUrl = $redirectUrl;
$this->AssetType = $AssetType;
}
示例4: __construct
public function __construct($redirectUrl = null)
{
parent::__construct();
$this->redirectUrl = $redirectUrl;
}
示例5: __construct
/**
* {@inheritdoc}
*/
public function __construct($name, $source, array $options = array())
{
parent::__construct($name, null, $options);
$this->setContent($source);
}
示例6: __construct
protected function __construct($db, $data)
{
parent::__construct($db, $data);
$this->assetRefs += array('service', 'brand', 'series', 'genre', 'format');
$this->initProperties($data, array('title' => 'prog_title', 'service' => 'prog_service', 'brand' => 'prog_brand', 'series' => 'prog_series', 'format' => 'prog_format', 'genre' => 'prog_genre', 'position' => 'prog_position', 'shortSynopsis' => 'prog_short_synopsis', 'mediumSynopsis' => 'prog_medium_synopsis', 'longSynopsis' => 'prog_long_synopsos'));
}
示例7: __construct
public function __construct($redirectUrl = NULL, $AssetType = NULL)
{
if (get_parent_class('RedirectAsset')) {
parent::__construct();
}
$this->redirectUrl = $redirectUrl;
$this->AssetType = $AssetType;
}
示例8: __construct
/**
* {@inheritDoc}
*/
public function __construct(string $caminhoArquivo, bool $compactavel = true, bool $concatenavel = true)
{
parent::__construct($caminhoArquivo, $compactavel, $concatenavel);
}
示例9: __construct
/**
* {@inheritdoc}
*/
public function __construct($name, $source, array $dependencies = [], array $options = [])
{
parent::__construct($name, null, $dependencies, $options);
$this->setContent($source);
}
示例10: __construct
public function __construct($properties)
{
parent::__construct($properties);
}
示例11: __construct
/**
* {@inheritdoc}
*/
public function __construct($name, $source, array $dependencies = array(), array $options = array())
{
$options['template'] = $source;
parent::__construct($name, null, $dependencies, $options);
}