本文整理汇总了PHP中Phpfox_Error::trigger方法的典型用法代码示例。如果您正苦于以下问题:PHP Phpfox_Error::trigger方法的具体用法?PHP Phpfox_Error::trigger怎么用?PHP Phpfox_Error::trigger使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Phpfox_Error
的用法示例。
在下文中一共展示了Phpfox_Error::trigger方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __get
/**
* Gets a param that is part of this component group.
*
* @param string $sData Param name.
* @return mixed If param exists we return the param value otherwise we return NULL.
*/
public function __get($sData)
{
if (isset(self::$_aParams[$this->_sCacheVar][$sData])) {
return self::$_aParams[$this->_sCacheVar][$sData];
}
Phpfox_Error::trigger('Undefined property: ' . $sData, E_USER_ERROR);
}
示例2: __call
public function __call($sMethod, $aArguments)
{
if ($sPlugin = Phpfox_Plugin::get('younetcore.service_process__call')) {
return eval($sPlugin);
}
Phpfox_Error::trigger('Call to undefined method ' . __CLASS__ . '::' . $sMethod . '()', E_USER_ERROR);
}
示例3: set
/**
* @param $content
* @param null $vars
* @param string $more_content will not add to less files
* @return bool
*/
public function set($content, $vars = null, $more_content = '', $themeName = 'default')
{
$less = new \lessc();
$lessContent = ($vars === null ? $this->get(true) : $vars) . "/** START CSS */\n";
$saveLestContent = $lessContent . trim($content);
$newContent = $saveLestContent . trim($more_content);
if (strtolower($themeName) == 'bootstrap') {
$less->setImportDir(PHPFOX_DIR . 'theme/frontend/bootstrap/less/');
} else {
$less->setImportDir(PHPFOX_DIR . 'less/');
}
$content = str_replace('../../../../PF.Base/less/', '', $newContent);
$content = '@import "variables";' . PHP_EOL . $content;
$parsed = null;
try {
$parsed = $less->compile($content);
} catch (\Exception $ex) {
if (PHPFOX_DEBUG) {
\Phpfox_Error::trigger($ex->getMessage(), E_USER_ERROR);
}
}
$path = $this->_theme->getPath() . 'flavor/' . $this->_theme->flavor_folder;
file_put_contents($path . '.less', $saveLestContent);
/* remove comments */
$minify = preg_replace('!/\\*[^*]*\\*+([^/][^*]*\\*+)*/!', '', $parsed);
/* remove tabs, spaces, newlines, etc. */
$minify = str_replace(array("\r\n", "\r", "\n", "\t", ' ', ' ', ' '), '', $minify);
file_put_contents($path . '.css', $minify);
$this->db->update(':setting', array('value_actual' => (int) \Phpfox::getParam('core.css_edit_id') + 1), 'var_name = \'css_edit_id\'');
$this->cache->del('setting');
return true;
// file_put_contents($this->_theme->getPath() . 'flavor/' . $this->_theme->flavor_folder . '.min.css', $parsed);
// if ($this->_get()) {
/*
$this->db->update(':theme_template', [
'html_data' => $parsed,
'html_data_original' => $content,
'time_stamp_update' => PHPFOX_TIME
], [
'folder' => $this->_theme->folder, 'type_id' => 'css', 'name' => $this->_theme->flavor_folder . '.css'
]);
*/
// return true;
// }
/*
$this->db->insert(':theme_template', [
'folder' => $this->_theme->folder,
'type_id' => 'css',
'name' => $this->_theme->flavor_folder . '.css',
'html_data' => $parsed,
'html_data_original' => $content,
'time_stamp' => PHPFOX_TIME
]);
*/
}
示例4: __call
/**
* If a call is made to an unknown method attempt to connect
* it to a specific plug-in with the same name thus allowing
* plug-in developers the ability to extend classes.
*
* @param string $sMethod is the name of the method
* @param array $aArguments is the array of arguments of being passed
*/
public function __call($sMethod, $aArguments)
{
/**
* Check if such a plug-in exists and if it does call it.
*/
if ($sPlugin = Phpfox_Plugin::get('report.service_data_data__call')) {
return eval($sPlugin);
}
/**
* No method or plug-in found we must throw a error.
*/
Phpfox_Error::trigger('Call to undefined method ' . __CLASS__ . '::' . $sMethod . '()', E_USER_ERROR);
}
示例5: __construct
/**
* Loads the amazons3 library developed by another group.
*
*/
public function __construct()
{
if (!file_exists(PHPFOX_DIR_SETTING . 'cdn.sett.php')) {
Phpfox_Error::trigger('CDN setting file is missing.', E_USER_DEPRECATED);
}
require_once PHPFOX_DIR_SETTING . 'cdn.sett.php';
foreach ($aServers as $iKey => $aServer) {
$iKey++;
$iKey++;
$this->_aServers[$iKey] = $aServer;
}
$this->_iServerId = array_rand($this->_aServers);
//rand(2, (count($this->_aServers) + 1));
}
示例6: process
/**
* Controller
*/
public function process()
{
if (Phpfox::getParam('tag.enable_hashtag_support')) {
return false;
}
if (!defined('PHPFOX_TAG_PARENT_MODULE')) {
define('PHPFOX_TAG_PARENT_MODULE', $this->getParam('sTagListParentModule', null));
}
if (!defined('PHPFOX_TAG_PARENT_ID')) {
define('PHPFOX_TAG_PARENT_ID', $this->getParam('iTagListParentId', 0));
}
$this->template()->assign('sMicroKeywords', $this->getParam('sMicroKeywords'));
if ($sType = $this->getParam('type')) {
$aUser = $this->getParam('aUser');
$sLink = Phpfox::callback($sType . '.getTagLink', $aUser);
$iItemId = $this->getParam('item_id');
$sTags = '';
$sTagsClean = '';
$aMainTags = Tag_Service_Tag::instance()->getTagsById($sType, $iItemId);
if (!isset($aMainTags[$iItemId])) {
return false;
}
foreach ($aMainTags[$iItemId] as $iKey => $aTag) {
$aMainTags[$iItemId][$iKey]['tag_url'] = $sLink . $aTag['tag_url'] . '/';
$sTags .= ', <a href="' . $aMainTags[$iItemId][$iKey]['tag_url'] . '">' . $aTag['tag_text'] . '</a>';
$sTagsClean .= ', ' . $aTag['tag_text'];
}
$sTags = ltrim($sTags, ',');
$sTagsClean = ltrim($sTagsClean, ',');
$this->template()->assign(array('sLink' => $sLink, 'sType' => Phpfox::callback($sType . '.getTagType'), 'sTags' => $sTags, 'sMainTags' => $sTagsClean, 'aTags' => $aMainTags[$iItemId], 'iItemId' => $this->getParam('iItemId'), 'iUserId' => $this->getParam('iUserId'), 'bIsInline' => $this->getParam('bIsInline'), 'bDontCleanTags' => $this->getParam('bDontCleanTags')));
} else {
if (!($sType = $this->getParam('sType'))) {
return Phpfox_Error::trigger(Phpfox::getPhrase('tag.missing_param_stype'), E_USER_ERROR);
}
$aUser = $this->getParam('aUser');
$sLink = Phpfox::callback($sType . '.getTagLink', $aUser);
$aMainTags = $this->getParam('sTags');
$sTags = '';
$sTagsClean = '';
foreach ($aMainTags as $iKey => $aTag) {
$aMainTags[$iKey]['tag_url'] = $sLink . $aTag['tag_url'] . '/';
$sTags .= ', <a href="' . $aMainTags[$iKey]['tag_url'] . '">' . $aTag['tag_text'] . '</a>';
$sTagsClean .= ', ' . $aTag['tag_text'];
}
$sTags = ltrim($sTags, ',');
$sTagsClean = ltrim($sTagsClean, ',');
$this->template()->assign(array('sLink' => $sLink, 'sType' => Phpfox::callback($sType . '.getTagType'), 'sTags' => $sTags, 'sMainTags' => $sTagsClean, 'aTags' => $aMainTags, 'iItemId' => $this->getParam('iItemId'), 'iUserId' => $this->getParam('iUserId'), 'bIsInline' => $this->getParam('bIsInline'), 'bDontCleanTags' => $this->getParam('bDontCleanTags')));
}
}
示例7: init
/**
* Start the session.
*
* @return mixed NULL if no errors, however FALSE if session cannot start.
*/
public function init()
{
session_set_save_handler(array($this, 'open'), array($this, 'close'), array($this, 'read'), array($this, 'write'), array($this, 'destroy'), array($this, 'gc'));
if (PHPFOX_SAFE_MODE) {
$this->_sSavePath = PHPFOX_DIR_CACHE;
} else {
$sSessionSavePath = PHPFOX_OPEN_BASE_DIR ? PHPFOX_DIR_FILE . 'session' . PHPFOX_DS : session_save_path();
if (empty($sSessionSavePath) || !empty($sSessionSavePath) && !Phpfox_File::instance()->isWritable($sSessionSavePath)) {
$this->_sSavePath = rtrim(Phpfox_File::instance()->getTempDir(), PHPFOX_DS) . PHPFOX_DS;
} else {
$this->_sSavePath = rtrim($sSessionSavePath, PHPFOX_DS) . PHPFOX_DS;
}
}
if (!Phpfox_File::instance()->isWritable($this->_sSavePath)) {
return Phpfox_Error::trigger('Session path is not wriable: ' . $this->_sSavePath, E_USER_ERROR);
}
if (!isset($_SESSION)) {
session_start();
}
}
示例8: send
/**
* Sends out an email.
*
* @param mixed $mTo Can either be a persons email (STRING) or an ARRAY of emails.
* @param string $sSubject Subject message of the email.
* @param string $sTextPlain Plain text of the message.
* @param string $sTextHtml HTML version of the message.
* @param string $sFromName Name the email is from.
* @param string $sFromEmail Email the email is from.
* @return bool TRUE on success, FALSE on failure.
*/
public function send($mTo, $sSubject, $sTextPlain, $sTextHtml, $sFromName = null, $sFromEmail = null)
{
$this->_oMail->AddAddress($mTo);
$this->_oMail->Subject = $sSubject;
$this->_oMail->Body = $sTextHtml;
$this->_oMail->AltBody = $sTextPlain;
if ($sFromName !== null) {
$this->_oMail->FromName = $sFromName;
}
if ($sFromEmail !== null) {
$this->_oMail->From = $sFromEmail;
}
if (!$this->_oMail->Send()) {
$this->_oMail->ClearAddresses();
return false;
return Phpfox_Error::trigger($this->_oMail->ErrorInfo, E_USER_ERROR);
}
$this->_oMail->ClearAddresses();
return true;
}
示例9: __construct
/**
* Class constructor that loads PHPMailer class and sets all the needed variables.
*
* @return mixed FALSE if we cannot load PHPMailer, or NULL if we were.
*/
public function __construct()
{
if (!file_exists(PHPFOX_DIR_LIB . 'phpmailer' . PHPFOX_DS . 'class.phpmailer.php')) {
return Phpfox_Error::trigger('Unable to load lib: ' . PHPFOX_DIR_LIB . 'phpmailer' . PHPFOX_DS . 'class.phpmailer.php', E_USER_ERROR);
}
require_once PHPFOX_DIR_LIB . 'phpmailer' . PHPFOX_DS . 'class.phpmailer.php';
$this->_oMail = new PHPMailer();
$this->_oMail->From = Phpfox::getParam('core.email_from_email') ? Phpfox::getParam('core.email_from_email') : 'server@localhost';
$this->_oMail->FromName = Phpfox::getParam('core.mail_from_name') ? Phpfox::getParam('core.mail_from_name') : Phpfox::getParam('core.site_title');
if (Phpfox::getParam('core.mail_smtp_authentication')) {
$this->_oMail->SMTPAuth = true;
$this->_oMail->Username = Phpfox::getParam('core.mail_smtp_username');
$this->_oMail->Password = Phpfox::getParam('core.mail_smtp_password');
}
$this->_oMail->Port = Phpfox::getParam('core.mail_smtp_port');
$this->_oMail->Host = Phpfox::getParam('core.mailsmtphost');
$this->_oMail->Mailer = "smtp";
$this->_oMail->WordWrap = 75;
$this->_oMail->CharSet = 'utf-8';
}
示例10: __call
/**
* If a call is made to an unknown method attempt to connect
* it to a specific plug-in with the same name thus allowing
* plug-in developers the ability to extend classes.
*
* @param string $sMethod is the name of the method
* @param array $aArguments is the array of arguments of being passed
*/
public function __call($sMethod, $aArguments)
{
/**
* Check if such a plug-in exists and if it does call it.
*/
if (($sPlugin = Phpfox_Plugin::get('spam_methods')) !== false) {
eval($sPlugin);
return;
}
/**
* No method or plug-in found we must throw a error.
*/
Phpfox_Error::trigger('Call to undefined method ' . __CLASS__ . '::' . $sMethod . '()', E_USER_ERROR);
}
示例11: _compileSectionStart
/**
* Complie sections {section}{/section}
*
* @param string $sArguments Section arguments.
* @return string Converted PHP foreach().
*/
private function _compileSectionStart($sArguments)
{
$aAttrs = $this->_parseArgs($sArguments);
$sOutput = '<?php ';
$sSectionName = $aAttrs['name'];
if (empty($sSectionName)) {
Phpfox_Error::trigger("missing section name", E_USER_ERROR);
}
$sOutput .= "if (isset(\$this->_aSections['{$sSectionName}'])) unset(\$this->_aSections['{$sSectionName}']);\n";
$sSectionProps = "\$this->_aSections['{$sSectionName}']";
foreach ($aAttrs as $sAttrName => $sAttrValue) {
switch ($sAttrName) {
case 'loop':
$sOutput .= "{$sSectionProps}['loop'] = is_array({$sAttrValue}) ? count({$sAttrValue}) : max(0, (int){$sAttrValue});\n";
break;
case 'show':
if (is_bool($sAttrValue)) {
$bShowAttrValue = $sAttrValue ? 'true' : 'false';
} else {
$bShowAttrValue = "(bool){$sAttrValue}";
}
$sOutput .= "{$sSectionProps}['show'] = {$bShowAttrValue};\n";
break;
case 'name':
$sOutput .= "{$sSectionProps}['{$sAttrName}'] = '{$sAttrValue}';\n";
break;
case 'max':
case 'start':
$sOutput .= "{$sSectionProps}['{$sAttrName}'] = (int){$sAttrValue};\n";
break;
case 'step':
$sOutput .= "{$sSectionProps}['{$sAttrName}'] = ((int){$sAttrValue}) == 0 ? 1 : (int){$sAttrValue};\n";
break;
default:
Phpfox_Error::trigger("unknown section attribute - '{$sAttrName}'", E_USER_ERROR);
break;
}
}
if (!isset($aAttrs['show'])) {
$sOutput .= "{$sSectionProps}['show'] = true;\n";
}
if (!isset($aAttrs['loop'])) {
$sOutput .= "{$sSectionProps}['loop'] = 1;\n";
}
if (!isset($aAttrs['max'])) {
$sOutput .= "{$sSectionProps}['max'] = {$sSectionProps}['loop'];\n";
} else {
$sOutput .= "if ({$sSectionProps}['max'] < 0)\n" . "\t{$sSectionProps}['max'] = {$sSectionProps}['loop'];\n";
}
if (!isset($aAttrs['step'])) {
$sOutput .= "{$sSectionProps}['step'] = 1;\n";
}
if (!isset($aAttrs['start'])) {
$sOutput .= "{$sSectionProps}['start'] = {$sSectionProps}['step'] > 0 ? 0 : {$sSectionProps}['loop']-1;\n";
} else {
$sOutput .= "if ({$sSectionProps}['start'] < 0)\n" . "\t{$sSectionProps}['start'] = max({$sSectionProps}['step'] > 0 ? 0 : -1, {$sSectionProps}['loop'] + {$sSectionProps}['start']);\n" . "else\n" . "\t{$sSectionProps}['start'] = min({$sSectionProps}['start'], {$sSectionProps}['step'] > 0 ? {$sSectionProps}['loop'] : {$sSectionProps}['loop']-1);\n";
}
$sOutput .= "if ({$sSectionProps}['show']) {\n";
if (!isset($aAttrs['start']) && !isset($aAttrs['step']) && !isset($aAttrs['max'])) {
$sOutput .= "\t{$sSectionProps}['total'] = {$sSectionProps}['loop'];\n";
} else {
$sOutput .= "\t{$sSectionProps}['total'] = min(ceil(({$sSectionProps}['step'] > 0 ? {$sSectionProps}['loop'] - {$sSectionProps}['start'] : {$sSectionProps}['start']+1)/abs({$sSectionProps}['step'])), {$sSectionProps}['max']);\n";
}
$sOutput .= "\tif ({$sSectionProps}['total'] == 0)\n" . "\t\t{$sSectionProps}['show'] = false;\n" . "} else\n" . "\t{$sSectionProps}['total'] = 0;\n";
$sOutput .= "if ({$sSectionProps}['show']):\n";
$sOutput .= "\n\t\t\tfor ({$sSectionProps}['index'] = {$sSectionProps}['start'], {$sSectionProps}['iteration'] = 1;\n\t\t\t\t {$sSectionProps}['iteration'] <= {$sSectionProps}['total'];\n\t\t\t\t {$sSectionProps}['index'] += {$sSectionProps}['step'], {$sSectionProps}['iteration']++):\n";
$sOutput .= "{$sSectionProps}['rownum'] = {$sSectionProps}['iteration'];\n";
$sOutput .= "{$sSectionProps}['index_prev'] = {$sSectionProps}['index'] - {$sSectionProps}['step'];\n";
$sOutput .= "{$sSectionProps}['index_next'] = {$sSectionProps}['index'] + {$sSectionProps}['step'];\n";
$sOutput .= "{$sSectionProps}['first']\t = ({$sSectionProps}['iteration'] == 1);\n";
$sOutput .= "{$sSectionProps}['last']\t = ({$sSectionProps}['iteration'] == {$sSectionProps}['total']);\n";
$sOutput .= "?>";
return $sOutput;
}
示例12: __call
/**
* If a call is made to an unknown method attempt to connect
* it to a specific plug-in with the same name thus allowing
* plug-in developers the ability to extend classes.
*
* @param string $sMethod is the name of the method
* @param array $aArguments is the array of arguments of being passed
*/
public function __call($sMethod, $aArguments)
{
if (preg_match("/^getNewsFeed(.*?)\$/i", $sMethod, $aMatches)) {
return Phpfox::callback(strtolower($aMatches[1]) . '.getCommentNewsFeed', $aArguments[0], isset($aArguments[1]) ? $aArguments[1] : null);
} elseif (preg_match("/^getFeedRedirect(.*?)\$/i", $sMethod, $aMatches)) {
return Phpfox::callback(strtolower($aMatches[1]) . '.getFeedRedirect', $aArguments[0], $aArguments[1]);
} elseif (preg_match("/^getNotificationFeed(.*?)\$/i", $sMethod, $aMatches)) {
if (empty($aMatches[1])) {
$aMatches[1] = 'feed';
}
return Phpfox::callback(strtolower($aMatches[1]) . '.getCommentNotificationFeed', $aArguments[0]);
} elseif (preg_match("/^getNotification(.*?)\$/i", $sMethod, $aMatches)) {
return Phpfox::callback(strtolower($aMatches[1]) . '.getCommentNotification', $aArguments[0]);
} elseif (preg_match("/^getAjaxCommentVar(.*?)\$/i", $sMethod, $aMatches)) {
return Phpfox::callback(strtolower($aMatches[1]) . '.getAjaxCommentVar');
} elseif (preg_match("/^getCommentItem(.*?)\$/i", $sMethod, $aMatches)) {
return Phpfox::callback(strtolower($aMatches[1]) . '.getCommentItem', $aArguments[0]);
} elseif (preg_match("/^addComment(.*?)\$/i", $sMethod, $aMatches)) {
return Phpfox::callback(strtolower($aMatches[1]) . '.addComment', $aArguments[0], isset($aArguments[1]) ? $aArguments[1] : null, isset($aArguments[2]) ? $aArguments[2] : null);
}
/*
elseif (preg_match("/^sendLikeEmail(.*?)$/i", $sMethod, $aMatches))
{
return Phpfox::getPhrase('comment.a_href_user_link_full_name_a_likes_your_a_href_link_comment_a', array(
'full_name' => Phpfox::getLib('parse.output')->clean(Phpfox::getUserBy('full_name')),
'user_link' => Phpfox_Url::instance()->makeUrl(Phpfox::getUserBy('user_name')),
'link' => Phpfox::callback(strtolower($aMatches[1]) . '.getFeedRedirect', $aArguments[0])
)
);
}
*/
/**
* Check if such a plug-in exists and if it does call it.
*/
if ($sPlugin = Phpfox_Plugin::get('comment.service_callback__call')) {
return eval($sPlugin);
}
/**
* No method or plug-in found we must throw a error.
*/
Phpfox_Error::trigger('Call to undefined method ' . __CLASS__ . '::' . $sMethod . '()', E_USER_ERROR);
}
示例13: parse
/**
* Parse XML code and convert into an ARRAY.
*
* @param string $mFile XML data or XML file name.
* @param string $sEncoding Encoding.
* @param bool $bEmptyData TRUE to empty XML data.
* @return mixed FALSE if errors were found, ARRAY if no errors and XML was converted into an ARRAY.
*/
public function parse($mFile, $sEncoding = 'ISO-8859-1', $bEmptyData = true)
{
$this->_sXml = $this->getXml($mFile);
if (empty($this->_sXml) || $this->_iError > 0) {
return false;
}
if (!($this->_oXml = xml_parser_create($sEncoding))) {
return false;
}
xml_parser_set_option($this->_oXml, XML_OPTION_SKIP_WHITE, 0);
xml_parser_set_option($this->_oXml, XML_OPTION_CASE_FOLDING, 0);
xml_set_character_data_handler($this->_oXml, array(&$this, '_handleCdata'));
xml_set_element_handler($this->_oXml, array(&$this, '_handleElementStart'), array(&$this, '_handleElementEnd'));
xml_parse($this->_oXml, $this->_sXml);
$bError = xml_get_error_code($this->_oXml);
if ($bEmptyData) {
$this->_sXml = '';
$this->_aStack = array();
$this->_sCdata = '';
}
if ($bError) {
$this->_iErrorCode = @xml_get_error_code($this->_oXml);
$this->_iErrorLine = @xml_get_current_line_number($this->_oXml);
xml_parser_free($this->_oXml);
return Phpfox_Error::trigger($this->errorString(), E_USER_ERROR);
}
xml_parser_free($this->_oXml);
return $this->_aData;
}
示例14: put
/**
* Uploads the file to Rackspace server.
*
* @param string $sFile Full path to where the file is located.
* @param string $sName Optional name of the file once it is uploaded. By default we just use the original file name.
* @return bool We only return a bool false if we were not able to upload the item.
*/
public function put($sFile, $sName = null)
{
$this->connect();
Phpfox_Error::skip(true);
if (empty($sName)) {
$sName = str_replace("\\", '/', str_replace(PHPFOX_DIR, '', $sFile));
}
$object = $this->_oContainer->create_object($sName);
try {
$object->load_from_filename($sFile);
} catch (Exception $hException) {
Phpfox_Error::trigger($hException->getMessage());
}
$this->_bIsUploaded = true;
if (Phpfox::getParam('core.keep_files_in_server') == false) {
$oSess = Phpfox::getLib('session');
$aFiles = $oSess->get('deleteFiles');
if (is_array($aFiles)) {
$aFiles[] = $sFile;
} else {
$aFiles = array($sFile);
}
$oSess->set('deleteFiles', $aFiles);
}
Phpfox_Error::skip(false);
return true;
}
示例15: getLibClass
/**
* Fine and load a library class and make sure it exists.
*
* @param string $sClass Library class name.
* @return bool TRUE if library has loaded, FALSE if not.
*/
public static function getLibClass($sClass)
{
class_exists('Phpfox_Plugin') && ($sPlugin = Phpfox_Plugin::get('library_phpfox_getlibclass_0')) ? eval($sPlugin) : false;
if (isset(self::$_aLibs[$sClass])) {
return true;
}
self::$_aLibs[$sClass] = md5($sClass);
$sClass = str_replace('.', PHPFOX_DS, $sClass);
$sFile = PHPFOX_DIR_LIB . $sClass . '.class.php';
if (file_exists($sFile)) {
require $sFile;
return true;
}
$aParts = explode(PHPFOX_DS, $sClass);
if (isset($aParts[1])) {
$sSubClassFile = PHPFOX_DIR_LIB . $sClass . PHPFOX_DS . $aParts[1] . '.class.php';
if (file_exists($sSubClassFile)) {
require $sSubClassFile;
return true;
}
}
if (class_exists($sClass)) {
return true;
}
($sPlugin = Phpfox_Plugin::get('library_phpfox_getlibclass_1')) ? eval($sPlugin) : false;
if (isset($mPluginReturn)) {
return $mPluginReturn;
}
Phpfox_Error::trigger('Unable to load class: ' . $sClass, E_USER_ERROR);
return false;
}