public function managerGetRegistrations()
    {
        $theRegistrations = [];

        /* @var $procedure \Thruway\Procedure */
        foreach ($this->procedures as $procedure) {
            /* @var $registration \Thruway\Registration */
            foreach ($procedure->getRegistrations() as $registration) {
                $theRegistrations[] = [
                    'id'         => $registration->getId(),
                    'name'       => $registration->getProcedureName(),
                    'session'    => $registration->getSession()->getSessionId(),
                    'statistics' => $registration->getStatistics()
                ];
            }
        }

        return [$theRegistrations];
    }
public function managerGetRegistrations()
    {
        $theRegistrations = [];

        /* @var $procedure \Thruway\Procedure */
        foreach ($this->procedures as $procedure) {
            /* @var $registration \Thruway\Registration */
            foreach ($procedure->getRegistrations() as $registration) {
                $theRegistrations[] = [
                    'id'         => $registration->getId(),
                    'name'       => $registration->getProcedureName(),
                    'session'    => $registration->getSession()->getSessionId(),
                    'statistics' => $registration->getStatistics()
                ];
            }
        }

        return [$theRegistrations];
    }
public function managerGetRegistrations ( ) { $ theRegistrations = [ ] ; /* @var $procedure \Thruway\Procedure */ foreach ( $ this -> procedures as $ procedure ) { /* @var $registration \Thruway\Registration */ foreach ( $ procedure -> getRegistrations ( ) as $ registration ) { $ theRegistrations [ ] = [ 'id' => $ registration -> getId ( ) , 'name' => $ registration -> getProcedureName ( ) , 'session' => $ registration -> getSession ( ) -> getSessionId ( ) , 'statistics' => $ registration -> getStatistics ( ) ] ; } } return [ $ theRegistrations ] ; }
Get list registrations

todo: this may be used by testing

@return array
Get list registrations