WIKINDX METHODS

Method:
splitTitle()

Class:
IMPORTCOMMON

Method Call:
include_once("core/file/import/IMPORTCOMMON.php");
$common = new IMPORTCOMMON($this->db);
ARRAY $common->splitTitle(STRING: $title);

Description:
A WIKINDX title is stored in three database fields: title, subtitle and noSort. This method will split an input title into component parts assuming the subtitle is distinguished from the title by the first ':' found in the string.

Usage:
Example:
	include_once("core/file/import/IMPORTCOMMON.php");
	$common = new IMPORTCOMMON($this->db);
	list($noSort, $title, $subtitle) = $common->splitTitle("The Meaning of Life: A Full Explanation in Twenty Words);

WIKINDX home      WIKINDX usage      WIKINDX classes