@@ 139-145 (lines=7) @@ | ||
136 | return in_array($uid, $users); |
|
137 | } |
|
138 | ||
139 | public function findChildUsers() |
|
140 | { |
|
141 | $collection = new UserCollection(); |
|
142 | $collection->addFilter(new Ajde_Filter_Join('user_node', 'user_node.user', 'user.id')); |
|
143 | $collection->addFilter(new Ajde_Filter_Where('user_node.node', Ajde_Filter::FILTER_EQUALS, $this->getPK())); |
|
144 | ||
145 | return $collection; |
|
146 | } |
|
147 | ||
148 | public function findChildUsersAsUidArray() |
|
@@ 652-660 (lines=9) @@ | ||
649 | * |
|
650 | * @return NodeCollection |
|
651 | */ |
|
652 | public function getRelatedNodes() |
|
653 | { |
|
654 | $collection = new NodeCollection(); |
|
655 | $collection->addFilter(new Ajde_Filter_Join('node_related', 'node.id', 'related')); |
|
656 | $collection->addFilter(new Ajde_Filter_Where('node_related.node', Ajde_Filter::FILTER_EQUALS, $this->getPK())); |
|
657 | $collection->orderBy('node_related.sort'); |
|
658 | ||
659 | return $collection; |
|
660 | } |
|
661 | ||
662 | /** |
|
663 | * |