@@ 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() |
|
@@ 648-656 (lines=9) @@ | ||
645 | /** |
|
646 | * @return NodeCollection |
|
647 | */ |
|
648 | public function getRelatedNodes() |
|
649 | { |
|
650 | $collection = new NodeCollection(); |
|
651 | $collection->addFilter(new Ajde_Filter_Join('node_related', 'node.id', 'related')); |
|
652 | $collection->addFilter(new Ajde_Filter_Where('node_related.node', Ajde_Filter::FILTER_EQUALS, $this->getPK())); |
|
653 | $collection->orderBy('node_related.sort'); |
|
654 | ||
655 | return $collection; |
|
656 | } |
|
657 | ||
658 | /** |
|
659 | * @return MediaCollection |