getPermissionObject()->checkAuthenticationType( 700 ) == false ) { //700=HTTP Auth with username/password return $this->getPermissionObject()->AuthenticationTypeDenied(); } if ( !$this->getPermissionObject()->Check( 'pay_stub', 'enabled' ) || !( $this->getPermissionObject()->Check( 'pay_stub', 'view' ) || $this->getPermissionObject()->Check( 'pay_stub', 'view_child' ) ) ) { return $this->getPermissionObject()->PermissionDenied(); } $pseallf = TTnew( 'PayStubEntryAccountLinkListFactory' ); /** @var PayStubEntryAccountLinkListFactory $pseallf */ $pseallf->getByCompanyId( $this->getCurrentUserObject()->getCompany() ); Debug::Text( 'PayStubEntryAccountLink Record Count: ' . $pseallf->getRecordCount(), __FILE__, __LINE__, __METHOD__, 10 ); if ( $pseallf->getRecordCount() > 0 ) { $this->setPagerObject( $pseallf ); $prev_type = null; $retarr = []; foreach ( $pseallf as $pseal_obj ) { $retarr[] = $pseal_obj->data; //FIXME: whip up an objectToArray function } return $this->returnHandler( $retarr ); } return $this->returnHandler( true ); //No records returned. } }