euromark 12 年之前
父节点
当前提交
122bcf3059
共有 1 个文件被更改,包括 4 次插入1 次删除
  1. 4 1
      Model/Behavior/NamedScopeBehavior.php

+ 4 - 1
Model/Behavior/NamedScopeBehavior.php

@@ -2,7 +2,10 @@
 App::uses('ModelBehavior', 'Model');
 
 /**
- * A behavior to keep scopes and conditions across multiple methods and models DRY.
+ * A behavior to keep scopes and conditions DRY across multiple methods and models.
+ * Those scopes can be added to any find() options array.
+ * Additionally, custom scopedFinds can help to reduce the amount of methods needed
+ * through a global config and one scopedFind() method.
  *
  * Basic idea taken and modified/fixed from https://github.com/netguru/namedscopebehavior
  * and https://github.com/josegonzalez/cakephp-simple-scope