AccessModel.class.php 404 B

1234567891011121314151617181920
  1. <?php
  2. namespace Admin\Model;
  3. /**
  4. * Access
  5. * 访问模型
  6. */
  7. class AccessModel extends CommonModel {
  8. // realtions
  9. protected $_link = array(
  10. // 一个field对应一个input
  11. 'node' => array(
  12. 'mapping_type' => self::BELONGS_TO,
  13. 'class_name' => 'Node',
  14. 'foreign_key' => 'node_id',
  15. 'mapping_fields' => 'pid,level'
  16. )
  17. );
  18. }