Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Oct 21st, 2010  |  syntax: PHP  |  size: 6.36 KB  |  views: 17  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. // A1::instance('a1/user')->get_user():
  2.  
  3. object Model_User(37) {
  4.     protected _has_many => ...
  5.     protected _config => string(7) "a1/user"
  6.     protected _ignored_columns => array(2) (
  7.         0 => string(16) "password_confirm"
  8.     )
  9.     protected _rules => ...
  10.     protected _filters => ...
  11.     protected _callbacks => ...
  12.     protected _user_model => NULL
  13.     protected _columns => NULL
  14.     protected _has_one => array(0)
  15.     protected _belongs_to => array(0)
  16.     protected _load_with => array(0)
  17.     protected _validate => NULL
  18.     protected _labels => array(0)
  19.     protected _object => array(7) (
  20.         "id" => string(1) "1"
  21.         "email" => ...
  22.         "password" => string(8) "qqqq2222"
  23.         "nick" => ...
  24.         "token" => ...
  25.         "last_login" => ...
  26.         "logins" => ...
  27.     )
  28.     protected _changed => array(0)
  29.     protected _related => array(0)
  30.     protected _loaded => bool TRUE
  31.     protected _saved => bool TRUE
  32.     protected _sorting => array(1) (
  33.         "id" => string(3) "ASC"
  34.     )
  35.     protected _foreign_key_suffix => string(3) "_id"
  36.     protected _object_name => string(4) "user"
  37.     protected _object_plural => NULL
  38.     protected _table_name => string(5) "users"
  39.     protected _table_columns => array(7) (
  40.         "id" => array(13) (
  41.             ...
  42.         )
  43.         "email" => array(12) (
  44.             ...
  45.         )
  46.         "password" => array(12) (
  47.             ...
  48.         )
  49.         "nick" => array(12) (
  50.             ...
  51.         )
  52.         "token" => array(12) (
  53.             ...
  54.         )
  55.         "last_login" => array(13) (
  56.             ...
  57.         )
  58.         "logins" => array(13) (
  59.             ...
  60.         )
  61.     )
  62.     protected _updated_column => NULL
  63.     protected _created_column => NULL
  64.     protected _primary_key => string(2) "id"
  65.     protected _primary_val => string(4) "name"
  66.     protected _table_names_plural => bool TRUE
  67.     protected _reload_on_wakeup => bool TRUE
  68.     protected _db => object Database_MySQL(6) {
  69.         protected _connection_id => string(40) "e98693e293defee7604421beb1e2aed03a0fa182"
  70.         protected _identifier => string(1) "`"
  71.         public last_query => string(88) "SELECT `users`.* FROM `users` WHERE `users`.`id` = '1' ORDER BY `users`.`id` ASC LIMIT 1"
  72.         protected _instance => string(7) "default"
  73.         protected _connection => resource(mysql link)
  74.         protected _config => array(6) (
  75.             "type" => string(5) "mysql"
  76.             "connection" => array(3) (
  77.                 "hostname" => string(9) "localhost"
  78.                 "database" => string(6) "kohana"
  79.                 "persistent" => bool FALSE
  80.             )
  81.             "table_prefix" => string(0) ""
  82.             "charset" => string(4) "utf8"
  83.             "caching" => bool FALSE
  84.             "profiling" => bool TRUE
  85.         )
  86.     }
  87.     protected _db_applied => array(0)
  88.     protected _db_pending => array(0)
  89.     protected _db_reset => bool TRUE
  90.     protected _db_builder => NULL
  91.     protected _with_applied => array(0)
  92.     protected _preload_data => array(0)
  93. }
  94.  
  95.  
  96.  
  97.  
  98.  
  99. // ORM::factory('user', 1)->find():
  100.  
  101. object Model_User(37) {
  102.     protected _has_many => ...
  103.     protected _config => string(7) "a1/user"
  104.     protected _ignored_columns => array(2) (
  105.         "password_confirm" => string(16) "password_confirm"
  106.     )
  107.     protected _rules => ....
  108.     protected _filters => ....
  109.     protected _callbacks => ....
  110.     protected _user_model => string(4) "user"
  111.     protected _columns => array(5) (
  112.         "username" => string(5) "email"
  113.         "password" => string(8) "password"
  114.         "token" => string(5) "token"
  115.         "last_login" => string(10) "last_login"
  116.         "logins" => string(6) "logins"
  117.     )
  118.     protected _has_one => array(0)
  119.     protected _belongs_to => array(0)
  120.     protected _load_with => array(0)
  121.     protected _validate => NULL
  122.     protected _labels => array(0)
  123.     protected _object => array(7) (
  124.         "id" => string(1) "1"
  125.         "email" => ...
  126.         "password" => string(8) "qqqq2222"
  127.         "nick" => ...
  128.         "token" => ...
  129.         "last_login" => ...
  130.         "logins" => ...
  131.     )
  132.     protected _changed => array(0)
  133.     protected _related => array(0)
  134.     protected _loaded => bool FALSE
  135.     protected _saved => bool FALSE
  136.     protected _sorting => array(1) (
  137.         "id" => string(3) "ASC"
  138.     )
  139.     protected _foreign_key_suffix => string(3) "_id"
  140.     protected _object_name => string(4) "user"
  141.     protected _object_plural => string(5) "users"
  142.     protected _table_name => string(5) "users"
  143.     protected _table_columns => array(7) (
  144.         "id" => array(13) (
  145.             ...
  146.         )
  147.         "email" => array(12) (
  148.             ...
  149.         )
  150.         "password" => array(12) (
  151.             ...
  152.         )
  153.         "nick" => array(12) (
  154.             ...
  155.         )
  156.         "token" => array(12) (
  157.             ...
  158.         )
  159.         "last_login" => array(13) (
  160.             ...
  161.         )
  162.         "logins" => array(13) (
  163.             ...
  164.         )
  165.     )
  166.     protected _updated_column => NULL
  167.     protected _created_column => NULL
  168.     protected _primary_key => string(2) "id"
  169.     protected _primary_val => string(4) "name"
  170.     protected _table_names_plural => bool TRUE
  171.     protected _reload_on_wakeup => bool TRUE
  172.     protected _db => object Database_MySQL(6) {
  173.         protected _connection_id => string(40) "e98693e293defee7604421beb1e2aed03a0fa182"
  174.         protected _identifier => string(1) "`"
  175.         public last_query => string(88) "SELECT `users`.* FROM `users` WHERE `users`.`id` = '1' ORDER BY `users`.`id` ASC LIMIT 1"
  176.         protected _instance => string(7) "default"
  177.         protected _connection => resource(mysql link)
  178.         protected _config => array(6) (
  179.             "type" => string(5) "mysql"
  180.             "connection" => array(3) (
  181.                 "hostname" => string(9) "localhost"
  182.                 "database" => string(6) "kohana"
  183.                 "persistent" => bool FALSE
  184.             )
  185.             "table_prefix" => string(0) ""
  186.             "charset" => string(4) "utf8"
  187.             "caching" => bool FALSE
  188.             "profiling" => bool TRUE
  189.         )
  190.     }
  191.     protected _db_applied => array(0)
  192.     protected _db_pending => array(0)
  193.     protected _db_reset => bool TRUE
  194.     protected _db_builder => NULL
  195.     protected _with_applied => array(0)
  196.     protected _preload_data => array(0)
  197. }
clone this paste RAW Paste Data