CMS  Version 3.9
Snippet Class Reference

Inherits DataItem.

Public Member Functions

 User ()
 

Public Attributes

 $primary_key = "snippet_id"
 
 $table = "snippet"
 
 $fields
 

Detailed Description

Definition at line 8 of file snippet.inc.

Member Function Documentation

◆ User()

Snippet::User ( )

Definition at line 21 of file snippet.inc.

22  {
23  $mgr = new UserManager();
24  return $mgr->getUser($this->user_id);
25  }
Provides the interface to the user model for the application.
$feedback user_id
Definition: save.inc:14

Member Data Documentation

◆ $fields

Snippet::$fields
Initial value:
= array("snippet_id" => Number,
"snippet_name" => String,
"description" => Text,
"snippet" => HTML,
"user_id" => Number,
"shared" => Boolean,
"last_modified" => Timestamp)

Definition at line 13 of file snippet.inc.

◆ $primary_key

Snippet::$primary_key = "snippet_id"

Definition at line 10 of file snippet.inc.

◆ $table

Snippet::$table = "snippet"

Definition at line 11 of file snippet.inc.


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