OEModule\PatientTicketing\services\PatientTicketing_QueueService::getDependentQueues PHP Method

getDependentQueues() public method

Get the dependent queues for given Queue resource.
public getDependentQueues ( PatientTicketing_Queue $qr, $include_closing = true ) : Queue[]
$qr PatientTicketing_Queue losing
return OEModule\PatientTicketing\models\Queue[]
    public function getDependentQueues(PatientTicketing_Queue $qr, $include_closing = true)
    {
        $queue = $this->readModel($qr->getId());
        $res = array();
        $d_ids = $queue->getDependentQueueIds();
        $dependents = $include_closing ? $this->model->active()->findAllByPk($d_ids) : $this->model->active()->notClosing()->findAllByPk($d_ids);
        return $dependents;
        /*
        foreach ($dependents as $dq) {
            $res[] = $this->modelToResource($dq);
        }
        return $res;
        */
    }