phpMv -UI toolkit 2.4.12
jQuery, jQuery UI, Twitter Bootstrap and Semantic-UI library for php & php MVC Frameworks
Loading...
Searching...
No Matches
SearchResult Class Reference
+ Inheritance diagram for SearchResult:

Public Member Functions

 __construct ($id=NULL, $title=NULL, $description=NULL, $image=NULL, $price=NULL)
 
 getId ()
 
 setId ($id)
 
 getTitle ()
 
 setTitle ($title)
 
 getDescription ()
 
 setDescription ($description)
 
 getImage ()
 
 setImage ($image)
 
 getPrice ()
 
 setPrice ($price)
 
 fromArray ($array)
 
 asArray ()
 
 JsonSerialize ()
 
 search ($query, $field="title")
 

Private Attributes

 $id
 
 $title
 
 $description
 
 $image
 
 $price
 

Detailed Description

Definition at line 5 of file SearchResult.php.

Constructor & Destructor Documentation

◆ __construct()

__construct (   $id = NULL,
  $title = NULL,
  $description = NULL,
  $image = NULL,
  $price = NULL 
)

Definition at line 12 of file SearchResult.php.

Member Function Documentation

◆ asArray()

asArray ( )

Definition at line 76 of file SearchResult.php.

◆ fromArray()

fromArray (   $array)

Definition at line 69 of file SearchResult.php.

◆ getDescription()

getDescription ( )

Definition at line 42 of file SearchResult.php.

◆ getId()

getId ( )

Definition at line 24 of file SearchResult.php.

◆ getImage()

getImage ( )

Definition at line 51 of file SearchResult.php.

◆ getPrice()

getPrice ( )

Definition at line 60 of file SearchResult.php.

◆ getTitle()

getTitle ( )

Definition at line 33 of file SearchResult.php.

◆ JsonSerialize()

JsonSerialize ( )

Definition at line 80 of file SearchResult.php.

◆ search()

search (   $query,
  $field = "title" 
)

Definition at line 90 of file SearchResult.php.

◆ setDescription()

setDescription (   $description)

Definition at line 46 of file SearchResult.php.

◆ setId()

setId (   $id)

Definition at line 28 of file SearchResult.php.

◆ setImage()

setImage (   $image)

Definition at line 55 of file SearchResult.php.

◆ setPrice()

setPrice (   $price)

Definition at line 64 of file SearchResult.php.

◆ setTitle()

setTitle (   $title)

Definition at line 37 of file SearchResult.php.

Field Documentation

◆ $description

$description
private

Definition at line 8 of file SearchResult.php.

◆ $id

$id
private

Definition at line 6 of file SearchResult.php.

◆ $image

$image
private

Definition at line 9 of file SearchResult.php.

◆ $price

$price
private

Definition at line 10 of file SearchResult.php.

◆ $title

$title
private

Definition at line 7 of file SearchResult.php.


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