RegistrationTypeDAO Class Reference

Operations for retrieving and modifying RegistrationType objects. More...

List of all members.

Public Member Functions

_returnRegistrationTypeFromRow (&$row)
 checkCode ($typeId, $schedConfId, $code)
 deleteRegistrationOptionCosts ($typeId)
 deleteRegistrationType (&$registrationType)
 deleteRegistrationTypeById ($typeId)
 deleteRegistrationTypesBySchedConf ($schedConfId)
 getInsertRegistrationTypeId ()
 getLocaleFieldNames ()
 getRegistrationOptionCosts ($typeId)
getRegistrationType ($typeId, $code=null)
 getRegistrationTypeInstitutional ($typeId)
 getRegistrationTypeMembership ($typeId)
 getRegistrationTypeName ($typeId)
 getRegistrationTypePublic ($typeId)
getRegistrationTypesBySchedConfId ($schedConfId, $rangeInfo=null)
 getRegistrationTypeSchedConfId ($typeId)
 insertRegistrationOptionCost ($typeId, $optionId, $cost)
 insertRegistrationType (&$registrationType)
 openRegistrationTypeExistsByTypeId ($typeId, $schedConfId)
 registrationTypeExistsByTypeId ($typeId, $schedConfId)
 resequenceRegistrationTypes ($schedConfId)
 updateLocaleFields (&$registrationType)
 updateRegistrationType (&$registrationType)


Detailed Description

Operations for retrieving and modifying RegistrationType objects.

See also:
RegistrationType

Definition at line 20 of file RegistrationTypeDAO.inc.php.


Member Function Documentation

& RegistrationTypeDAO._returnRegistrationTypeFromRow ( &$  row  ) 

Internal function to return a RegistrationType object from a row.

Parameters:
$row array
Returns:
RegistrationType

Definition at line 229 of file RegistrationTypeDAO.inc.php.

Referenced by getRegistrationType(), and getRegistrationTypesBySchedConfId().

RegistrationTypeDAO.checkCode ( typeId,
schedConfId,
code 
)

Check if a registration type exists with the given type id and fee code for a scheduled conference.

Parameters:
$typeId int
$schedConfId int
$code string
Returns:
boolean

Definition at line 203 of file RegistrationTypeDAO.inc.php.

RegistrationTypeDAO.deleteRegistrationOptionCosts ( typeId  ) 

Delete registration options for a type.

Parameters:
$typeId int

Definition at line 481 of file RegistrationTypeDAO.inc.php.

Referenced by deleteRegistrationTypeById().

RegistrationTypeDAO.deleteRegistrationType ( &$  registrationType  ) 

Delete a registration type.

Parameters:
$registrationType RegistrationType
Returns:
boolean

Definition at line 351 of file RegistrationTypeDAO.inc.php.

References deleteRegistrationTypeById().

Referenced by deleteRegistrationTypesBySchedConf().

RegistrationTypeDAO.deleteRegistrationTypeById ( typeId  ) 

Delete a registration type by ID. Note that all registrations with this type ID are also deleted.

Parameters:
$typeId int
Returns:
boolean

Definition at line 361 of file RegistrationTypeDAO.inc.php.

References deleteRegistrationOptionCosts().

Referenced by deleteRegistrationType().

RegistrationTypeDAO.getInsertRegistrationTypeId (  ) 

Get the ID of the last inserted registration type.

Returns:
int

Definition at line 403 of file RegistrationTypeDAO.inc.php.

Referenced by insertRegistrationType().

RegistrationTypeDAO.getLocaleFieldNames (  ) 

Get the list of field names for which localized data is used.

Returns:
array

Definition at line 256 of file RegistrationTypeDAO.inc.php.

RegistrationTypeDAO.getRegistrationOptionCosts ( typeId  ) 

Get cost information for a registration type.

Parameters:
$typeId int
Returns:
array $optionId => $cost

Definition at line 459 of file RegistrationTypeDAO.inc.php.

& RegistrationTypeDAO.getRegistrationType ( typeId,
code = null 
)

Retrieve a registration type by ID.

Parameters:
$typeId int
$code string Optional registration code "password"
Returns:
RegistrationType

Definition at line 27 of file RegistrationTypeDAO.inc.php.

References _returnRegistrationTypeFromRow().

RegistrationTypeDAO.getRegistrationTypeInstitutional ( typeId  ) 

Retrieve institutional flag by ID.

Parameters:
$typeId int
Returns:
int

Definition at line 92 of file RegistrationTypeDAO.inc.php.

RegistrationTypeDAO.getRegistrationTypeMembership ( typeId  ) 

Retrieve membership flag by ID.

Parameters:
$typeId int
Returns:
int

Definition at line 110 of file RegistrationTypeDAO.inc.php.

RegistrationTypeDAO.getRegistrationTypeName ( typeId  ) 

Retrieve registration type name by ID.

Parameters:
$typeId int
Returns:
string

Definition at line 70 of file RegistrationTypeDAO.inc.php.

References AppLocale.getLocale(), and AppLocale.getPrimaryLocale().

RegistrationTypeDAO.getRegistrationTypePublic ( typeId  ) 

Retrieve public flag by ID.

Parameters:
$typeId int
Returns:
int

Definition at line 128 of file RegistrationTypeDAO.inc.php.

& RegistrationTypeDAO.getRegistrationTypesBySchedConfId ( schedConfId,
rangeInfo = null 
)

Retrieve an array of registration types matching a particular scheduled conference ID.

Parameters:
$schedConfId int
Returns:
object DAOResultFactory containing matching RegistrationTypes

Definition at line 389 of file RegistrationTypeDAO.inc.php.

References _returnRegistrationTypeFromRow().

Referenced by deleteRegistrationTypesBySchedConf().

RegistrationTypeDAO.getRegistrationTypeSchedConfId ( typeId  ) 

Retrieve registration type scheduled conference ID by ID.

Parameters:
$typeId int
Returns:
int

Definition at line 52 of file RegistrationTypeDAO.inc.php.

RegistrationTypeDAO.insertRegistrationOptionCost ( typeId,
optionId,
cost 
)

Insert pricing for a registration type for a registration option.

Parameters:
$typeId int
$optionId int
$cost number
Returns:
boolean

Definition at line 440 of file RegistrationTypeDAO.inc.php.

RegistrationTypeDAO.insertRegistrationType ( &$  registrationType  ) 

Insert a new RegistrationType.

Parameters:
$registrationType RegistrationType
Returns:
boolean

Definition at line 275 of file RegistrationTypeDAO.inc.php.

References getInsertRegistrationTypeId(), and updateLocaleFields().

RegistrationTypeDAO.openRegistrationTypeExistsByTypeId ( typeId,
schedConfId 
)

Check if an open registration type exists with the given type id for a scheduled conference.

Parameters:
$typeId int
$schedConfId int
Returns:
boolean

Definition at line 172 of file RegistrationTypeDAO.inc.php.

RegistrationTypeDAO.registrationTypeExistsByTypeId ( typeId,
schedConfId 
)

Check if a registration type exists with the given type id for a scheduled conference.

Parameters:
$typeId int
$schedConfId int
Returns:
boolean

Definition at line 147 of file RegistrationTypeDAO.inc.php.

RegistrationTypeDAO.resequenceRegistrationTypes ( schedConfId  ) 

Sequentially renumber registration types in their sequence order.

Definition at line 410 of file RegistrationTypeDAO.inc.php.

RegistrationTypeDAO.updateLocaleFields ( &$  registrationType  ) 

Update the localized settings for this object

Parameters:
$registrationType object

Definition at line 264 of file RegistrationTypeDAO.inc.php.

Referenced by insertRegistrationType(), and updateRegistrationType().

RegistrationTypeDAO.updateRegistrationType ( &$  registrationType  ) 

Update an existing registration type.

Parameters:
$registrationType RegistrationType
Returns:
boolean

Definition at line 308 of file RegistrationTypeDAO.inc.php.

References updateLocaleFields().


The documentation for this class was generated from the following file:
Generated on 25 Jul 2013 for Open Conference Systems by  doxygen 1.4.7