用户工具

站点工具


drupal:script:node-structure

Node 节点数据结构

保存节点时的数据结构

object(stdClass)#84 (44) {
  ["nid"]=>
  string(4) "1630"
  ["vid"]=>
  string(4) "1630"
  ["uid"]=>
  string(1) "1"
  ["created"]=>
  int(1290671389)
  ["type"]=>
  string(9) "promotion"
  ["language"]=>
  string(7) "zh-hans"
  ["changed"]=>
  int(1290672720)
  ["title"]=>
  string(12) "凡客测试"
  ["revision"]=>
  int(0)
  ["name"]=>
  string(5) "admin"
  ["date"]=>
  string(25) "2010-11-25 15:49:49 +0800"
  ["status"]=>
  int(1)
  ["promote"]=>
  int(1)
  ["sticky"]=>
  int(0)
  ["op"]=>
  string(4) "Save"
  ["submit"]=>
  string(4) "Save"
  ["preview"]=>
  string(6) "预览"
  ["delete"]=>
  string(6) "删除"
  ["form_build_id"]=>
  string(37) "form-5157c320ad566289fc8f605b7ef61d09"
  ["form_token"]=>
  string(32) "da512df1c6ef0f7d6a5fca8cdbb81a99"
  ["form_id"]=>
  string(19) "promotion_node_form"
  ["comment"]=>
  string(1) "2"
  ["menu"]=>
  array(13) {
    ["mlid"]=>
    int(0)
    ["module"]=>
    string(4) "menu"
    ["hidden"]=>
    int(0)
    ["has_children"]=>
    int(0)
    ["customized"]=>
    int(0)
    ["options"]=>
    array(0) {
    }
    ["expanded"]=>
    int(0)
    ["parent_depth_limit"]=>
    int(8)
    ["link_title"]=>
    string(0) ""
    ["parent"]=>
    string(15) "primary-links:0"
    ["weight"]=>
    string(1) "0"
    ["plid"]=>
    string(1) "0"
    ["menu_name"]=>
    string(13) "primary-links"
  }
  ["path"]=>
  string(17) "cuxiao/a1630.html"
  ["pid"]=>
  string(4) "6362"
  ["pathauto_perform_alias"]=>
  int(1)
  ["old_alias"]=>
  string(17) "cuxiao/a1630.html"
  ["taxonomy"]=>
  array(3) {
    [4]=>
    array(1) {
      [1]=>
      string(1) "1"
    }
    ["tags"]=>
    array(3) {
      [1]=>
      string(0) ""
      [7]=>
      string(29) "测试品牌, 测试品牌二"
      [6]=>
      string(0) ""
    }
    [2]=>
    array(1) {
      [177]=>
      string(3) "177"
    }
  }
  ["upload"]=>
  string(0) ""
  ["attach"]=>
  string(6) "上传"
  ["field_start_time"]=>
  array(1) {
    [0]=>
    array(7) {
      ["value"]=>
      string(19) "2010-11-25T00:00:00"
      ["value2"]=>
      string(19) "2010-11-25T00:00:00"
      ["timezone"]=>
      string(13) "Asia/Shanghai"
      ["offset"]=>
      int(28800)
      ["offset2"]=>
      int(28800)
      ["timezone_db"]=>
      string(13) "Asia/Shanghai"
      ["date_type"]=>
      string(4) "date"
    }
  }
  ["field_end_time"]=>
  array(1) {
    [0]=>
    array(7) {
      ["value"]=>
      string(19) "2011-01-24T00:00:00"
      ["value2"]=>
      string(19) "2011-01-24T00:00:00"
      ["timezone"]=>
      string(13) "Asia/Shanghai"
      ["offset"]=>
      int(28800)
      ["offset2"]=>
      int(28800)
      ["timezone_db"]=>
      string(13) "Asia/Shanghai"
      ["date_type"]=>
      string(4) "date"
    }
  }
  ["field_coupon_end_time"]=>
  array(1) {
    [0]=>
    array(4) {
      ["value"]=>
      NULL
      ["timezone"]=>
      string(13) "Asia/Shanghai"
      ["timezone_db"]=>
      string(13) "Asia/Shanghai"
      ["date_type"]=>
      string(4) "date"
    }
  }
  ["field_prom_tuijian_reason"]=>
  array(1) {
    [0]=>
    array(3) {
      ["value"]=>
      string(6) "测试"
      ["format"]=>
      string(1) "1"
      ["_error_element"]=>
      string(35) "field_prom_tuijian_reason][0][value"
    }
  }
  ["field_url"]=>
  array(1) {
    [0]=>
    array(3) {
      ["value"]=>
      string(59) "http://images.vancl.com/zhuanti/edm_20101127/1027edm_05.jpg"
      ["format"]=>
      string(1) "1"
      ["_error_element"]=>
      string(19) "field_url][0][value"
    }
  }
  ["field_prom_image"]=>
  array(1) {
    [0]=>
    array(15) {
      ["fid"]=>
      string(4) "2064"
      ["data"]=>
      array(2) {
        ["alt"]=>
        string(0) ""
        ["title"]=>
        string(0) ""
      }
      ["list"]=>
      string(1) "1"
      ["uid"]=>
      string(1) "0"
      ["filename"]=>
      string(18) "20101125075504.jpg"
      ["filepath"]=>
      string(60) "sites/default/files/shop_promo/2010/11/25/20101125075504.jpg"
      ["filemime"]=>
      string(10) "image/jpeg"
      ["filesize"]=>
      string(5) "18526"
      ["status"]=>
      string(1) "1"
      ["timestamp"]=>
      string(10) "1290671704"
      ["alt"]=>
      string(0) ""
      ["title"]=>
      string(0) ""
      ["filefield_upload"]=>
      string(6) "上传"
      ["filefield_remove"]=>
      string(6) "Remove"
      ["upload"]=>
      string(0) ""
    }
  }
  ["field_coupon_image"]=>
  array(1) {
    [0]=>
    NULL
  }
  ["field_recommend"]=>
  array(1) {
    [0]=>
    array(2) {
      ["value"]=>
      string(2) "30"
      ["_error_element"]=>
      string(25) "field_recommend][0][value"
    }
  }
  ["teaser"]=>
  string(0) ""
  ["format"]=>
  int(0)
  ["validated"]=>
  bool(true)
  ["is_new"]=>
  bool(false)
  ["body"]=>
  string(0) ""
  ["timestamp"]=>
  int(1290672720)
}
drupal/script/node-structure.txt · 最后更改: 2010/11/25 08:25 (外部编辑)