PubdbModelCitationstyleForm - JoomlaPubDB/PubDB GitHub Wiki

Class: \PubdbModelCitationstyleForm

Namespace: [](../namespaces/default)


Summary:

Pubdb model.


Constants

  • No constants found

Properties


Methods


Details


Tags

Tag Version Description
since 1.6

Properties

private $item :


Type:

Details:


Methods

public getItem() : Object|boolean

public getItem(integer  $id = null) : Object|boolean

Summary

Method to get an ojbect.

Details:

Parameters:
Type Name Description
integer $id The id of the object to get.
Throws:
Type Description
\Exception

Returns: Object|boolean - Object on success, false on failure.

public getTable() : \JTable|boolean

public getTable(string  $type = 'Citationstyle', string  $prefix = 'PubdbTable', array  $config = array()) : \JTable|boolean

Summary

Method to get the table

Details:

Parameters:
Type Name Description
string $type Name of the JTable class
string $prefix Optional prefix for the table class name
array $config Optional configuration array for JTable object

Returns: \JTable|boolean - JTable if found, boolean false on failure

public getItemIdByAlias() : integer

public getItemIdByAlias(string  $alias) : integer

Summary

Get an item by alias

Details:

Parameters:
Type Name Description
string $alias Alias string

Returns: integer - Element id

public checkin() : boolean

public checkin(integer  $id = null) : boolean

Summary

Method to check in an item.

Details:

Parameters:
Type Name Description
integer $id The id of the row to check out.

Returns: boolean - True on success, false on failure.

Tags
Tag Version Description
since 1.6

public checkout() : boolean

public checkout(integer  $id = null) : boolean

Summary

Method to check out an item for editing.

Details:

Parameters:
Type Name Description
integer $id The id of the row to check out.

Returns: boolean - True on success, false on failure.

Tags
Tag Version Description
since 1.6

public getForm() : \JForm

public getForm(array  $data = array(), boolean  $loadData = true) : \JForm

Summary

Method to get the profile form.

Description

The base form is loaded from XML

Details:

Parameters:
Type Name Description
array $data An optional array of data for the form to interogate.
boolean $loadData True if the form is to load its own data (default case), false if not.

Returns: \JForm - A JForm object on success, false on failure

Tags
Tag Version Description
since 1.6

public save() : boolean

public save(array  $data) : boolean

Summary

Method to save the form data.

Details:

Parameters:
Type Name Description
array $data The form data
Throws:
Type Description
\Exception

Returns: boolean

Tags
Tag Version Description
since 1.6

public delete() : integer

public delete(integer  $pk) : integer

Summary

Method to delete data

Details:

Parameters:
Type Name Description
integer $pk Item primary key
Throws:
Type Description
\Exception

Returns: integer - The id of the deleted item

Tags
Tag Version Description
since 1.6

public getCanSave() : boolean

public getCanSave() : boolean

Summary

Check if data can be saved

Details:

Returns: boolean

protected populateState() : void

protected populateState() : void

Summary

Method to auto-populate the model state.

Description

Note. Calling getState in this method will result in recursion.

Details:

Throws:
Type Description
\Exception

Returns: void

Tags
Tag Version Description
since 1.6

protected loadFormData() : mixed

protected loadFormData() : mixed

Summary

Method to get the data that should be injected in the form.

Details:

Returns: mixed - The data for the form.

Tags
Tag Version Description
since 1.6

Top Namespaces


Reports


This document was automatically generated from source code comments on 2020-07-13 using phpDocumentor and fr3nch13/phpdoc-markdown

⚠️ **GitHub.com Fallback** ⚠️