projects
/
platal.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Release plat/al core v1.1.8
[platal.git]
/
classes
/
plfilter.php
diff --git
a/classes/plfilter.php
b/classes/plfilter.php
index
f36a803
..
8355308
100644
(file)
--- a/
classes/plfilter.php
+++ b/
classes/plfilter.php
@@
-1,6
+1,6
@@
<?php
/***************************************************************************
<?php
/***************************************************************************
- * Copyright (C) 2003-201
0
Polytechnique.org *
+ * Copyright (C) 2003-201
1
Polytechnique.org *
* http://opensource.polytechnique.org/ *
* *
* This program is free software; you can redistribute it and/or modify *
* http://opensource.polytechnique.org/ *
* *
* This program is free software; you can redistribute it and/or modify *
@@
-123,6
+123,16
@@
abstract class PlFilterGroupableOrder extends PlFilterOrder
{
return $this->_tokens;
}
{
return $this->_tokens;
}
+
+ /** This function is called when trying to restrict to one of the
+ * specific values of the group token.
+ *
+ * @return A PlFilterCondition.
+ */
+ public function getCondition($group_value)
+ {
+ return null;
+ }
}
// }}}
}
// }}}
@@
-185,7
+195,7
@@
abstract class PFC_OneChild implements PlFilterCondition
public function export()
{
public function export()
{
- return array('child' => $child->export());
+ return array('child' => $
this->
child->export());
}
}
// }}}
}
}
// }}}
@@
-228,8
+238,9
@@
abstract class PFC_NChildren implements PlFilterCondition
public function export()
{
$export = array();
public function export()
{
$export = array();
- foreach ($this->children as $child)
+ foreach ($this->children as $child)
{
$export[] = $child->export();
$export[] = $child->export();
+ }
return array('children' => $export);
}
}
return array('children' => $export);
}
}
@@
-383,6
+394,14
@@
abstract class PlFilter implements PlExportable
*/
public abstract function get($limit = null);
*/
public abstract function get($limit = null);
+ /** Get ids, selecting only those within a limit
+ * @param $limit The portion of the matching objects to select
+ */
+ public function getIds($limit = null)
+ {
+ return $this->get($limit);
+ }
+
/** PRIVATE FUNCTIONS
*/
/** PRIVATE FUNCTIONS
*/