File/program/themes/frugal/frugal_install.php

Description

/program/themes/frugal/frugal_install.php -- installer of the frugal theme

This file contains the frugal theme installer. The interface consists of these functions:

    frugal_install(&$messages,$theme_id) frugal_upgrade(&$messages,$theme_id) frugal_uninstall(&$messages,$theme_id) frugal_demodata(&$messages,$theme_id,$config,$manifest)

These functions can be called from the main installer and/or admin.php.

  • author: Peter Fokker <peter@berestijn.nl>
  • version: $Id: frugal_install.php,v 1.1.1.1 2011-02-01 13:01:36 pfokker Exp $
  • copyright: Copyright (C) 2008-2011 Ingenieursbureau PSD/Peter Fokker
  • license: GNU AGPLv3+Additional Terms
Functions
frugal_demodata (line 230)

add demonstration data to the system

this routine is a no-op because all frugal demodata is already created in the main demodata-routine in /program/install/demodata.php. This routine is retained here as an example alias placeholder.

  • return: TRUE on success + output via $messages, FALSE otherwise
bool frugal_demodata (array &$messages, int $theme_id,  $config, array $manifest, array $configuration)
  • array &$messages: collects the (error) messages
  • int $theme_id: the key for this theme in the themes table
  • array $configuration: pertinent data for the new website + demodata foundation
  • array $manifest: a copuy from the manifest for this theme
  • $config
frugal_install (line 45)

install the theme

  • return: TRUE on success + output via $messages, FALSE otherwise
bool frugal_install (array &$messages, int $theme_id)
  • array &$messages: collects the (error) messages
  • int $theme_id: the key for this theme in the themes table
frugal_uninstall (line 212)

uninstall the theme

  • return: TRUE on success + output via $messages, FALSE otherwise
bool frugal_uninstall (array &$messages, int $theme_id)
  • array &$messages: collects the (error) messages
  • int $theme_id: the key for this theme in the themes table
frugal_upgrade (line 200)

upgrade the theme

  • return: TRUE on success + output via $messages, FALSE otherwise
bool frugal_upgrade (array &$messages, int $theme_id)
  • array &$messages: collects the (error) messages
  • int $theme_id: the key for this theme in the themes table

Documentation generated on Tue, 1 Feb 2011 16:55:12 +0100 by phpDocumentor 1.4.0