PHP Class QueryForm, pkp-lib

Inheritance: extends Form
Afficher le fichier Open project: pkp/pkp-lib Class Usage Examples

Méthodes publiques

Свойство Type Description
$_assocId Assoc ID (per _assocType)
$_assocType ASSOC_TYPE_...
$_isNew True iff this is a newly-created query
$_query The query being edited *
$_stageId The stage id associated with the query being edited *

Méthodes publiques

Méthode Description
__construct ( $request, $assocType, $assocId, $stageId, $queryId = null ) Constructor.
deleteEntry ( $request, $rowId )
execute ( $request )
fetch ( $request, $actionArgs = [] ) Fetch the form.
getAssocId ( ) : integer Get assoc id
getAssocType ( ) : integer Get assoc type
getQuery ( ) : Query Get the query
getStageId ( ) : integer Get the stage id
initData ( ) Initialize form data from the associated author.
insertEntry ( $request, $newRowId )
readInputData ( ) Assign form data to user-submitted data.
setAssocId ( $assocId ) Set assoc id
setAssocType ( $assocType ) Set assoc type
setQuery ( $query ) Set the query
setStageId ( $stageId ) Set the stage id
updateEntry ( $request, $rowId, $newRowId )

Method Details

__construct() public méthode

Constructor.
public __construct ( $request, $assocType, $assocId, $stageId, $queryId = null )
$request Request
$assocType int ASSOC_TYPE_...
$assocId int Assoc ID (per assocType)
$stageId int WORKFLOW_STAGE_...
$queryId int Optional query ID to edit. If none provided, a (potentially temporary) query will be created.

deleteEntry() public méthode

public deleteEntry ( $request, $rowId )

execute() public méthode

public execute ( $request )
$request PKPRequest

fetch() public méthode

Fetch the form.
See also: Form::fetch()
public fetch ( $request, $actionArgs = [] )
$request PKPRequest
$actionArgs array Optional list of additional arguments

getAssocId() public méthode

Get assoc id
public getAssocId ( ) : integer
Résultat integer

getAssocType() public méthode

Get assoc type
public getAssocType ( ) : integer
Résultat integer ASSOC_TYPE_...

getQuery() public méthode

Get the query
public getQuery ( ) : Query
Résultat Query

getStageId() public méthode

Get the stage id
public getStageId ( ) : integer
Résultat integer

initData() public méthode

Initialize form data from the associated author.
public initData ( )

insertEntry() public méthode

public insertEntry ( $request, $newRowId )

readInputData() public méthode

Assign form data to user-submitted data.
See also: Form::readInputData()
public readInputData ( )

setAssocId() public méthode

Set assoc id
public setAssocId ( $assocId )
$assocId int

setAssocType() public méthode

Set assoc type
public setAssocType ( $assocType )
$assocType int ASSOC_TYPE_...

setQuery() public méthode

Set the query
public setQuery ( $query )

setStageId() public méthode

Set the stage id
public setStageId ( $stageId )

updateEntry() public méthode

public updateEntry ( $request, $rowId, $newRowId )

Property Details

$_assocId public_oe property

Assoc ID (per _assocType)
public $_assocId

$_assocType public_oe property

ASSOC_TYPE_...
public $_assocType

$_isNew public_oe property

True iff this is a newly-created query
public $_isNew

$_query public_oe property

The query being edited *
public $_query

$_stageId public_oe property

The stage id associated with the query being edited *
public $_stageId