隨心蕓蕓 @ JPeanut(舊版)

          搬遷至 http://www.17m.net.cn/

          BlogJava 首頁 新隨筆 聯系 聚合 管理
            43 Posts :: 0 Stories :: 54 Comments :: 0 Trackbacks
          [翻譯:陳市明 摘自:http://drupal.org/node/49768]

          Node對象:
          [name] => 創建結點的用戶名
          [date]
          => 創建結點的時間
          [status]
          => 是否發布{True:發布|False:未發布 }(在action+workflow中可以做審核處理)
          [moderate] => 是否可修改{0:只讀|1:修改}
          [promote]
          => 是否發布首頁{0:是|1:否}
          [sticky] => 是否置頂{0:否|1:是}
          [revision]
          => TRUE/FALSE this is a new revision (if TRUE, will be saved as a separate entry in the database)
          [comment]=> 對該結點是否允許添加,閱讀或者是對其設置權限
          [simple_access]
          => 對權限模塊的一個
          [title] => 顯示結點頁面的標題
          [taxonomy] => 分類(數組,具體查看Taxonomy模塊)
          [body] => 結點的內容
          [format] => 符合Filter模塊的Content內容
          [uid] => 創建結點的用戶ID
          [created] => 創建結點的Unix類型的時間戳
          [type] => 結點類型(如:book,page,forum,具體查看cck模塊)
          [teaser] => 內容概要
          [validated] => 該結點是否有效{0:否|1:是}(是否已經保存)
          [changed] =>
          修改結點的Unix類型的時間戳
          [nid] => 結點ID



          原文:
          &$node?-?Node?object

          [name]?
          =>?Username?of?node?creator
          [date]?
          =>?Date?the?node?was?created
          [status]?
          =>?TRUE/FALSE?=?published/unpublished
          [moderate]?
          =>?Moderation?enabled?(0|1)
          [promote]?
          =>?Promoted?to?front?page?(0|1)
          [sticky]?
          =>?Sticky?(0|1)
          [revision]?
          =>?TRUE/FALSE?this?is?a?new?revision?(if?TRUE,?will?be?saved?as?a?separate?entry?in?the?database)
          [comment]?
          =>?whether?comments?can?be?added,?read,?or?accessed,?for?this?node
          [simple_access]?
          =>?Array?--?A?list?of?permissions?for?the?Simple?Access?module
          (
          [view]?
          =>?0
          )

          [title]?
          =>?Page?title
          [taxonomy]?
          =>?Array?--?Taxonomy?classification
          (
          [
          0]?=>?0
          )

          [body]?
          =>?Body?content?of?node

          [format]?
          =>?which?filter?applies?to?this?content.
          [uid]?
          =>?User?ID?of?node?creator
          [created]?
          =>?UNIX?timestamp?of?node?creation?date.
          [type]?
          =>?Type?of?node?(e.g.?book,?page,?forum)
          [teaser]?
          =>?Teaser?(the?initial?part?of?the?body)

          [validated]?
          =>?has?the?node?passed?validation??(0|1)?(is?it?ready?to?be?saved).
          [changed]?
          =>?UNIX?timestamp?of?last?time?node?was?changed.
          [nid]?
          =>?Node?ID

          posted on 2007-03-25 22:34 陳市明 閱讀(500) 評論(0)  編輯  收藏 所屬分類: 小陳的Drupal專區小陳翻譯
          主站蜘蛛池模板: 从化市| 兴宁市| 隆化县| 太白县| 富宁县| 扎鲁特旗| 洛隆县| 同德县| 乌恰县| 固原市| 新乐市| 合水县| 怀安县| 华阴市| 楚雄市| 白朗县| 犍为县| 湖南省| 龙海市| 秦皇岛市| 镇雄县| 商丘市| 腾冲县| 宁德市| 靖边县| 亳州市| 田东县| 北辰区| 荥阳市| 香格里拉县| 长宁县| 普兰县| 达拉特旗| 平江县| 嵩明县| 镇原县| 申扎县| 合作市| 镇远县| 增城市| 沂源县|