Class microsite_template

Description

Microsite Template - a container class.

Located in /microsite-defs.php (line 2507)


	
			
Variable Summary
Method Summary
 microsite_template microsite_template ([integer $id = NEW_MICROSITE_TEMPLATE], [string $microsite_name = ""], [string $name = ""], [string $type = "html"], [string $content = ""])
 boolean delete ()
 boolean get ()
 void publishto (mixed $pubdir, string $dirpath)
 boolean save ()
Variables
mixed $microsite_name (line 2521)

The name of the microsite this template is for

mixed $microsite_template_id (line 2510)

Unique microsite template ID

mixed $template_content = "" (line 2516)

Template content

mixed $template_name = "" (line 2512)

Template name

mixed $template_type = "html" (line 2514)

Template type 'html' or 'wml'

Methods
Constructor microsite_template (line 2532)

Constructor

Create a new microsite_template

microsite_template microsite_template ([integer $id = NEW_MICROSITE_TEMPLATE], [string $microsite_name = ""], [string $name = ""], [string $type = "html"], [string $content = ""])
  • integer $id: The unique microsite template ID
  • string $microsite_name: The name of the microsite this is for
  • string $name: The name of this temaplate
  • string $type: The type of this temaplate 'html' or 'wml'
  • string $content: The actual template content
delete (line 2596)

Delete the current microsite template, from the database.

  • return: True if we successfully deleted the record
boolean delete ()
get (line 2545)

Get the current microsite template, as identified by the ID, from the database.

  • return: True if we successfully got the record
boolean get ()
publishto (line 2610)

Publish the template(s) into the given directory. The filename will be as per the Axyl standard, depending on template name and type.

void publishto (mixed $pubdir, string $dirpath)
  • string $dirpath: Path to a directory to publish this template.
save (line 2567)

Update or create the microsite template to the database.

  • return: True if we successfully saved the record
boolean save ()

Documentation generated by phpDocumentor 1.3.0RC3