本文整理汇总了PHP中Meta::export方法的典型用法代码示例。如果您正苦于以下问题:PHP Meta::export方法的具体用法?PHP Meta::export怎么用?PHP Meta::export使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Meta
的用法示例。
在下文中一共展示了Meta::export方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: export
public function export($bits = null)
{
$export = parent::export();
$export['hruid'] = $this->login();
$export['displayName'] = $this->displayName();
$export['fullName'] = $this->fullName();
if ($bits & self::EXPORT_MICRO) {
$export['micro'] = $this->image()->src('micro');
}
if ($bits & self::EXPORT_SMALL) {
$export['small'] = $this->image()->src('small');
}
return $export;
}
示例2: export
public function export($bits = null)
{
$array = parent::export();
$array['question'] = $this->question;
$array['answer1'] = $this->answer1;
$array['answer2'] = $this->answer2;
$array['count1'] = $this->count1;
$array['count2'] = $this->count2;
$array['date'] = $this->date->format('Y-m-d');
return $array;
}
示例3: export
public function export($bits = null)
{
$export = parent::export();
if ($this->name !== null) {
$export['name'] = $this->name;
}
if ($this->versions !== null) {
foreach ($this->versions as $key => $version) {
$export['versions'][$key] = array('wrote' => $version['wrote'], 'writer' => $version['writer']->export(), 'content' => $version['content'], 'html' => MiniWiki::WikiToHTML($version['content'], true));
}
}
if ($this->comments !== null) {
$export['comments'] = $this->comments;
}
return $export;
}