DatabaseFormFactory
DatabaseFormFactory
DatabaseFormFactory
Handles Form object creation that are pre-loaded from SQL queries
- Full name: \Gibbon\Forms\DatabaseFormFactory
- Parent class: \Gibbon\Forms\FormFactory
Methods
- __construct — Create a factory with access to the provided a database connection.
- create — Create and return an instance of DatabaseFormFactory.
- createSelectSchoolYear
- createSelectYearGroup
- createSelectRollGroup
- createSelectClass
- createCheckboxYearGroup
- createCheckboxSchoolYearTerm
- createSelectDepartment
- createSelectSchoolYearTerm
- createSelectLanguage
- createSelectCountry
- createSelectRole
- createSelectStatus
- createSelectStaff
- createSelectUsers
- createSelectStudent
- createSelectGradeScale
- createSelectGradeScaleGrade
- createSelectRubric
- createPhoneNumber
- createSequenceNumber
- createSelectTransport
- createSelectSpace
- createTextFieldDistrict
- createSelectAlert
Inherited from FormFactory
- create
- createRow
- createColumn
- createTable
- createDataTable
- createTableCell
- createGrid
- createTrigger
- createLabel
- createHeading
- createContent
- createWebLink
- createCustomField
- createTextArea
- createTextField
- createFinder
- createEditor
- createEmail
- createURL
- createNumber
- createCurrency
- createPassword
- createFileUpload
- createDate
- createTime
- createCheckbox
- createRadio
- createSelect
- createMultiSelect
- createButton
- createCustomBlocks
- createSubheading
- createAlert
- createSubmit
- createSearchSubmit
- createConfirmSubmit
- createFooter
- createYesNo
- createYesNoRadio
- createCheckAll
- createSelectTitle
- createSelectGender
- createSelectRelationship
- createSelectEmergencyRelationship
- createSelectMaritalStatus
- createSelectBloodType
- createSelectCurrency
__construct
Create a factory with access to the provided a database connection.
DatabaseFormFactory::__construct( \Gibbon\Forms\Gibbon\Contracts\Database\Connection $pdo )
create
Create and return an instance of DatabaseFormFactory.
static DatabaseFormFactory::create( \Gibbon\Contracts\Database\Connection $pdo = null ): object
- This method is static.
Return Value:
object
DatabaseFormFactory
createSelectSchoolYear
DatabaseFormFactory::createSelectSchoolYear( $name, $status = 'All', $orderBy = 'ASC' )
createSelectYearGroup
DatabaseFormFactory::createSelectYearGroup( $name, $all = false )
createSelectRollGroup
DatabaseFormFactory::createSelectRollGroup( $name, $gibbonSchoolYearID, $all = false )
createSelectClass
DatabaseFormFactory::createSelectClass( $name, $gibbonSchoolYearID, $gibbonPersonID = null, $params = array() )
createCheckboxYearGroup
DatabaseFormFactory::createCheckboxYearGroup( $name )
createCheckboxSchoolYearTerm
DatabaseFormFactory::createCheckboxSchoolYearTerm( $name, $gibbonSchoolYearID )
createSelectDepartment
DatabaseFormFactory::createSelectDepartment( $name )
createSelectSchoolYearTerm
DatabaseFormFactory::createSelectSchoolYearTerm( $name, $gibbonSchoolYearID )
createSelectLanguage
DatabaseFormFactory::createSelectLanguage( $name )
createSelectCountry
DatabaseFormFactory::createSelectCountry( $name )
createSelectRole
DatabaseFormFactory::createSelectRole( $name )
createSelectStatus
DatabaseFormFactory::createSelectStatus( $name )
createSelectStaff
DatabaseFormFactory::createSelectStaff( $name )
createSelectUsers
DatabaseFormFactory::createSelectUsers( $name, $gibbonSchoolYearID = false, $params = array() )
createSelectStudent
DatabaseFormFactory::createSelectStudent( $name, $gibbonSchoolYearID, $params = array() )
createSelectGradeScale
DatabaseFormFactory::createSelectGradeScale( $name )
createSelectGradeScaleGrade
DatabaseFormFactory::createSelectGradeScaleGrade( $name, $gibbonScaleID, $params = array() )
createSelectRubric
DatabaseFormFactory::createSelectRubric( $name, $gibbonYearGroupIDList = '', $gibbonDepartmentID = '' )
createPhoneNumber
DatabaseFormFactory::createPhoneNumber( $name )
createSequenceNumber
DatabaseFormFactory::createSequenceNumber( $name, $tableName, $sequenceNumber = '', $columnName = null )
createSelectTransport
DatabaseFormFactory::createSelectTransport( $name, $all = false )
createSelectSpace
DatabaseFormFactory::createSelectSpace( $name )
createTextFieldDistrict
DatabaseFormFactory::createTextFieldDistrict( $name )
createSelectAlert
DatabaseFormFactory::createSelectAlert( $name )