Open Monograph Press  1.1
 All Classes Namespaces Functions Variables Groups Pages
SeriesForm Class Reference
Inheritance diagram for SeriesForm:
Form

Public Member Functions

 deleteCategoryEntry ($request, $rowId)
 
 deleteSeriesEditorEntry ($request, $rowId)
 
 execute ($args, $request)
 
 fetch ($request)
 
 getSeriesId ()
 
 initData ($args, $request)
 
 insertCategoryEntry ($request, $newRowId)
 
 insertSeriesEditorEntry ($request, $newRowId)
 
 readInputData ()
 
 SeriesForm ($seriesId=null)
 
 setSeriesId ($seriesId)
 
 updateCategoryEntry ($request, $rowId, $newRowId)
 
 updateSeriesEditorEntry ($request, $rowId, $newRowId)
 
 validate ()
 
- Public Member Functions inherited from Form
 _decomposeArray ($name, $value, $stack)
 
 addCheck ($formValidator)
 
 addError ($field, $message)
 
 addErrorField ($field)
 
 display ($request=null, $template=null)
 
 execute ($object=null)
 
 fetch ($request, $template=null, $display=false)
 
 Form ($template=null, $callHooks=true, $requiredLocale=null, $supportedLocales=null)
 
 getData ($key)
 
 getDefaultFormLocale ()
 
 getErrorsArray ()
 
 getFormLocale ()
 
 getLocaleFieldNames ()
 
 getRequiredLocale ()
 
 getTemplate ()
 
 initData ()
 
 isLocaleResubmit ()
 
 isValid ()
 
 readInputData ()
 
 readUserDateVars ($vars)
 
 readUserVars ($vars)
 
 setData ($key, $value)
 
 setTemplate ($template)
 
 smartyFormLanguageChooser ($params, &$smarty)
 
 validate ($callHooks=true)
 

Public Attributes

 $_imageExtension
 
 $_seriesId
 
 $_sizeArray
 
 $_userId
 
- Public Attributes inherited from Form
 $_checks
 
 $_data
 
 $_errors
 
 $_template
 
 $cssValidation
 
 $errorFields
 
 $errorsArray
 
 $formSectionErrors
 
 $requiredLocale
 
 $supportedLocales
 

Detailed Description

Form for adding/edditing a series stores/retrieves from an associative array.

Definition at line 22 of file SeriesForm.inc.php.

Member Function Documentation

SeriesForm::deleteCategoryEntry (   $request,
  $rowId 
)

Delete a category association with this series.

See Also
ListbuilderHandler::deleteEntry
Parameters
$requestPKPRequest
$rowIdint

Definition at line 357 of file SeriesForm.inc.php.

SeriesForm::deleteSeriesEditorEntry (   $request,
  $rowId 
)

Delete a series editor association with this series.

See Also
ListbuilderHandler::deleteEntry
Parameters
$requestPKPRequest
$rowIdint

Definition at line 309 of file SeriesForm.inc.php.

SeriesForm::execute (   $args,
  $request 
)

Save series.

Parameters
$argsarray
$requestPKPRequest

Definition at line 144 of file SeriesForm.inc.php.

SeriesForm::fetch (   $request)

Fetch

Parameters
$requestPKPRequest
See Also
Form::fetch()

Definition at line 116 of file SeriesForm.inc.php.

SeriesForm::getSeriesId ( )

Get the series ID for this series.

Returns
int

Definition at line 270 of file SeriesForm.inc.php.

Referenced by readInputData().

SeriesForm::initData (   $args,
  $request 
)

Initialize form data from current settings.

Parameters
$argsarray
$requestPKPRequest

Definition at line 66 of file SeriesForm.inc.php.

SeriesForm::insertCategoryEntry (   $request,
  $newRowId 
)

Persist a category association

See Also
ListbuilderHandler::insertEntry

Definition at line 334 of file SeriesForm.inc.php.

SeriesForm::insertSeriesEditorEntry (   $request,
  $newRowId 
)

Persist a series editor association

See Also
ListbuilderHandler::insertEntry

Definition at line 286 of file SeriesForm.inc.php.

SeriesForm::readInputData ( )

Assign form data to user-submitted data.

See Also
Form::readInputData()

Definition at line 135 of file SeriesForm.inc.php.

References DAORegistry\getDAO(), and getSeriesId().

SeriesForm::SeriesForm (   $seriesId = null)

Constructor.

Definition at line 47 of file SeriesForm.inc.php.

SeriesForm::setSeriesId (   $seriesId)

Set the series ID for this series.

Parameters
$seriesIdint

Definition at line 278 of file SeriesForm.inc.php.

SeriesForm::updateCategoryEntry (   $request,
  $rowId,
  $newRowId 
)

Update a category association with this series.

See Also
ListbuilderHandler::updateEntry
Parameters
$requestPKPRequest
$rowIdint old category
$newRowIdarray new category

Definition at line 372 of file SeriesForm.inc.php.

SeriesForm::updateSeriesEditorEntry (   $request,
  $rowId,
  $newRowId 
)

Update a series editor association with this series.

See Also
ListbuilderHandler::deleteEntry
Parameters
$requestPKPRequest
$rowIdint the old series editor
$newRowIdarray the new series editor

Definition at line 324 of file SeriesForm.inc.php.

SeriesForm::validate ( )
See Also
Form::validate()

Definition at line 93 of file SeriesForm.inc.php.

References Form\addError().

Member Data Documentation

$_imageExtension SeriesForm::$_imageExtension

string Cover image extension

Definition at line 36 of file SeriesForm.inc.php.

SeriesForm::$_seriesId

the id for the series being edited

Definition at line 24 of file SeriesForm.inc.php.

$_sizeArray SeriesForm::$_sizeArray

array Cover image information from getimagesize

Definition at line 42 of file SeriesForm.inc.php.

$_userId SeriesForm::$_userId

int The current user ID

Definition at line 30 of file SeriesForm.inc.php.


The documentation for this class was generated from the following file: