當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Meta::export方法代碼示例

本文整理匯總了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;
 }
開發者ID:netixx,項目名稱:frankiz,代碼行數:14,代碼來源:user.php

示例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;
 }
開發者ID:netixx,項目名稱:frankiz,代碼行數:11,代碼來源:qdj.php

示例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;
 }
開發者ID:netixx,項目名稱:frankiz,代碼行數:16,代碼來源:wiki.php


注:本文中的Meta::export方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。