PubdbModelLiterature - JoomlaPubDB/PubDB GitHub Wiki

Class: \PubdbModelLiterature

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


Summary:

Pubdb model.


Constants

  • No constants found

Properties


Methods


Details


Tags

Tag Version Description
since 1.6

Properties

public $typeAlias : string


Type: string Alias to manage history control Details:

Tags
Tag Version Description
since 3.2

protected $text_prefix : string


Type: string The prefix to use with controller messages. Details:

Tags
Tag Version Description
since 1.6

protected $item : null


Type: null Item data Details:

Tags
Tag Version Description
since 1.6

Methods

public getTable() : \JTable

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

Summary

Returns a reference to the a Table object, always creating it.

Details:

Parameters:
Type Name Description
string $type The table type to instantiate
string $prefix A prefix for the table class name. Optional.
array $config Configuration array for model. Optional.

Returns: \JTable - A database object

Tags
Tag Version Description
since 1.6

public getForm() : \JForm

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

Summary

Method to get the record form.

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.
Throws:
Type Description

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

Tags
Tag Version Description
since 1.6

public getItem() : mixed

public getItem(integer  $pk = null) : mixed

Summary

Method to get a single record.

Details:

Parameters:
Type Name Description
integer $pk The id of the primary key.

Returns: mixed - Object on success, false on failure.

Tags
Tag Version Description
since 1.6

public duplicate() : boolean

public duplicate(  $pks) : boolean

Summary

Method to duplicate an Literature

Details:

Parameters:
Type Name Description
$pks
Throws:
Type Description
\Exception

Returns: boolean - True if successful.

protected loadFormData() : mixed

protected loadFormData() : mixed

Summary

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

Details:

Throws:
Type Description

Returns: mixed - The data for the form.

Tags
Tag Version Description
since 1.6

protected prepareTable() : void

protected prepareTable(\JTable  $table) : void

Summary

Prepare and sanitise the table prior to saving.

Details:

Parameters:
Type Name Description
\JTable $table Table Object

Returns: void

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** ⚠️