Changeset 29423
- Timestamp:
- 05/12/10 16:55:25 (3 years ago)
- Files:
-
- plugins/sfDataSourcePlugin/trunk/lib/sfDataSourceAggregatedFiltering.php (added)
- plugins/sfDataSourcePlugin/trunk/lib/sfDataSourceFilterableInterface.php (added)
- plugins/sfDataSourcePlugin/trunk/lib/sfDataSourceInterface.class.php (modified) (2 diffs)
- plugins/sfDataSourcePlugin/trunk/lib/sfDataSourcePropel.class.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
plugins/sfDataSourcePlugin/trunk/lib/sfDataSourceInterface.class.php
r28806 r29423 62 62 * @version SVN: $Id$ 63 63 */ 64 interface sfDataSourceInterface extends SeekableIterator, ArrayAccess, Countable 64 interface sfDataSourceInterface extends SeekableIterator, ArrayAccess, Countable, sfDataSourceFilterableInterface 65 65 { 66 66 const ASC = 'asc'; … … 99 99 */ 100 100 public function setSort($column, $order = sfDataSourceInterface::ASC); 101 102 /**103 *104 * // TODO: remove Criteria dependancy105 *106 *107 * An associative array of field-names with an associative array of value/operator-pairs108 * array(field => array('value' => $value, 'operator' => $operator))109 *110 * field names can match column-names but the implementation is up to you.111 *112 * @param array[array[string, string]] $columns113 */114 public function addFilter($column, $value, $comparison = sfDataSource::EQUAL);115 101 116 102 /** plugins/sfDataSourcePlugin/trunk/lib/sfDataSourcePropel.class.php
r29186 r29423 159 159 { 160 160 $method = 'get'.$accessor; //TODO: maybe move to sfPropelObjectPathBehaviorPlugin? object->getValueByPropertyPath($field)... 161 $obj = $obj->$method(); 161 if ($obj) 162 { 163 $obj = $obj->$method(); 164 } 162 165 } 163 166