return $query->find(); | return $query->find(); | ||||
} | } | ||||
public function getOnlineAndOffline($query = null) | |||||
{ | |||||
$query = $this->createDefaultQuery($query); | |||||
$query->filterIsOnlineAndOffline(); | |||||
return $query->find(); | |||||
} | |||||
public function getParent(bool $isOnline = true, $query = null) | public function getParent(bool $isOnline = true, $query = null) | ||||
{ | { | ||||
$query = $this->createDefaultQuery($query); | $query = $this->createDefaultQuery($query); |