当前位置: 首页>>代码示例>>PHP>>正文


PHP Trigger_Error函数代码示例

本文整理汇总了PHP中Trigger_Error函数的典型用法代码示例。如果您正苦于以下问题:PHP Trigger_Error函数的具体用法?PHP Trigger_Error怎么用?PHP Trigger_Error使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了Trigger_Error函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: smarty_function_copyright

function smarty_function_copyright($params, $smarty)
{
    $Copyright = DB_Select('Config', 'Value', array('UNIQ', 'Where' => "`Param` = 'Copyright'"));
    if (!Is_Array($Copyright)) {
        return ERROR | @Trigger_Error(500);
    }
    return $Copyright['Value'];
}
开发者ID:carriercomm,项目名称:jbs,代码行数:8,代码来源:function.copyright.php

示例2: getParams

 public function getParams()
 {
     $Server = DB_Select('Servers', array('Address', 'Params'), array('UNIQ', 'Where' => SPrintF('(SELECT `ServerID` FROM `OrdersOwners` WHERE `OrdersOwners`.`ID` = %u) = `Servers`.`ID`', $this->params['OrderID'])));
     if (!Is_Array($Server)) {
         return ERROR | @Trigger_Error(500);
     }
     $this->params['Server'] = $Server;
     return $this->params;
 }
开发者ID:carriercomm,项目名称:jbs,代码行数:9,代码来源:VPSPasswordChangeMsg.class.php

示例3: getParams

 public function getParams()
 {
     #$Message = Preg_Replace("#\[hidden\](.+)\[/hidden\]#sU", ' ', $this->params['Message'], -1);
     $Message = Comp_Load('Edesks/Text', array('String' => $this->params['Message'], 'IsEmail' => TRUE));
     if (Is_Error($Message)) {
         return ERROR | @Trigger_Error(500);
     }
     $this->params['Message'] = $Message;
     return $this->params;
 }
开发者ID:carriercomm,项目名称:jbs,代码行数:10,代码来源:FromTicketsMessagesMsg.class.php

示例4: getParams

 public function getParams()
 {
     Debug(print_r($this->params, true));
     $Service = DB_Select('Services', array('ID', 'Code', 'Name', 'NameShort'), array('UNIQ', 'ID' => $this->params['ServiceID']));
     if (!Is_Array($Service)) {
         return ERROR | @Trigger_Error(500);
     }
     $this->params['Service'] = $Service;
     return $this->params;
 }
开发者ID:carriercomm,项目名称:jbs,代码行数:10,代码来源:OrdersSuspendedMsg.class.php

示例5: Comp_Load

function Comp_Load($Element)
{
    /****************************************************************************/
    $__args_types = array('string', '*');
    #-----------------------------------------------------------------------------
    $__args__ = Func_Get_Args();
    eval(FUNCTION_INIT);
    /****************************************************************************/
    $HostsIDs = System_HostsIDs(SPrintF('comp/%s.comp.php', $Element));
    if (Is_Error($HostsIDs)) {
        return ERROR | @Trigger_Error('[Comp_Load]: не возможно найти компонент');
    }
    #-----------------------------------------------------------------------------
    $IsCascade = In_Array(COMP_ALL_HOSTS, $__args__, TRUE);
    #-----------------------------------------------------------------------------
    if ($IsCascade) {
        $HostsIDs = Array_Reverse($HostsIDs);
    }
    #-----------------------------------------------------------------------------
    $Result = array();
    #-----------------------------------------------------------------------------
    foreach ($HostsIDs as $HostID) {
        #---------------------------------------------------------------------------
        $Path = SPrintF('%s/hosts/%s/comp/%s.comp.php', SYSTEM_PATH, $HostID, $Element);
        #---------------------------------------------------------------------------
        if (Is_Dir($Path)) {
            return ERROR | @Trigger_Error('[Comp_Load]: объект не является компонентом');
        }
        #---------------------------------------------------------------------------
        $Args = $__args__;
        #---------------------------------------------------------------------------
        Array_UnShift($Args, $Path);
        #---------------------------------------------------------------------------
        $Comp = Call_User_Func_Array('LoadComp', $Args);
        if (Is_Error($Comp)) {
            return ERROR | @Trigger_Error('[Comp_Load]: не возможно загрузить компонент');
        }
        #---------------------------------------------------------------------------
        if ($IsCascade) {
            $Result[] = $Comp;
        } else {
            #-------------------------------------------------------------------------
            $Result = $Comp;
            #-------------------------------------------------------------------------
            break;
        }
    }
    #-----------------------------------------------------------------------------
    $Loaded =& Link_Get('Comp/Loaded', 'array');
    #-----------------------------------------------------------------------------
    $Loaded[] = $Element;
    #-----------------------------------------------------------------------------
    return $Result;
}
开发者ID:carriercomm,项目名称:jbs,代码行数:54,代码来源:Comp.php

示例6: getParams

 public function getParams()
 {
     #-------------------------------------------------------------------------------
     #$Server = DB_Select('HostingServers', Array('Address', 'Url', 'Ns1Name', 'Ns2Name', 'MySQL'), Array('UNIQ', 'ID' => $this->params['ServerID']));
     $Server = DB_Select('Servers', array('Address', 'Params'), array('UNIQ', 'Where' => SPrintF('(SELECT `ServerID` FROM `OrdersOwners` WHERE `OrdersOwners`.`ID` = %u) = `Servers`.`ID`', $this->params['OrderID'])));
     if (!Is_Array($Server)) {
         return ERROR | @Trigger_Error(500);
     }
     #-------------------------------------------------------------------------------
     $this->params['Server'] = $Server;
     #-------------------------------------------------------------------------------
     return $this->params;
     #-------------------------------------------------------------------------------
 }
开发者ID:carriercomm,项目名称:jbs,代码行数:14,代码来源:HostingPasswordChangeMsg.class.php

示例7: getParams

 public function getParams()
 {
     #-------------------------------------------------------------------------------
     $Server = new DomainServer();
     #-------------------------------------------------------------------------------
     $IsSelected = $Server->Select((int) $this->params['ServerID']);
     #-------------------------------------------------------------------------------
     switch (ValueOf($IsSelected)) {
         #-------------------------------------------------------------------------------
         case 'error':
             return ERROR | @Trigger_Error(500);
         case 'true':
             #-------------------------------------------------------------------------------
             // For RegRu only
             if ($Server->Settings['Params']['SystemID'] == 'RegRu' && In_Array($this->params['Name'], array('ru', 'su', 'рф'))) {
                 #-------------------------------------------------------------------------------
                 $Domain = SprintF("%s.%s", $this->params['DomainName'], $this->params['Name']);
                 #-------------------------------------------------------------------------------
                 $Result = $Server->GetUploadID($Domain);
                 #-------------------------------------------------------------------------------
                 switch (ValueOf($Result)) {
                     case 'error':
                         return ERROR | @Trigger_Error(500);
                     case 'array':
                         #-------------------------------------------------------------------------------
                         $UploadID = $Result['UploadID'];
                         #-------------------------------------------------------------------------------
                         $this->params['UploadID'] = $UploadID;
                         #-------------------------------------------------------------------------------
                         Debug(SPrintF('[system/classes/DomainOrdersOnRegisterMsg.class.php]: UploadID = %s', $UploadID));
                         #-------------------------------------------------------------------------------
                         break;
                         #-------------------------------------------------------------------------------
                     #-------------------------------------------------------------------------------
                     default:
                         return ERROR | @Trigger_Error(101);
                 }
                 #-------------------------------------------------------------------------------
             }
             #-------------------------------------------------------------------------------
             break;
             #-------------------------------------------------------------------------------
         #-------------------------------------------------------------------------------
         default:
             return ERROR | @Trigger_Error(101);
     }
     #-------------------------------------------------------------------------------
     return $this->params;
     #-------------------------------------------------------------------------------
 }
开发者ID:carriercomm,项目名称:jbs,代码行数:50,代码来源:DomainOrdersOnRegisterMsg.class.php

示例8: Md5

function &Messages()
{
    #-----------------------------------------------------------------------------
    $Name = Md5('Messages');
    #-----------------------------------------------------------------------------
    if (!isset($GLOBALS[$Name])) {
        #---------------------------------------------------------------------------
        $GLOBALS[$Name] = System_XML('config/Messages.xml');
        if (Is_Error($GLOBALS[$Name])) {
            return ERROR | Trigger_Error('[Messages]: не удалось загрузить файл сообщений');
        }
    }
    #-----------------------------------------------------------------------------
    return $GLOBALS[$Name];
}
开发者ID:carriercomm,项目名称:jbs,代码行数:15,代码来源:Messages.php

示例9: Md5

function &Regulars()
{
    #-----------------------------------------------------------------------------
    $Name = Md5('Regulars');
    #-----------------------------------------------------------------------------
    if (!isset($GLOBALS[$Name])) {
        #---------------------------------------------------------------------------
        $GLOBALS[$Name] = System_XML('config/Regulars.xml');
        if (Is_Error($GLOBALS[$Name])) {
            return ERROR | Trigger_Error('[Regulars]: не удалось загрузить файл регулярных выражений');
        }
    }
    #-----------------------------------------------------------------------------
    return $GLOBALS[$Name];
}
开发者ID:carriercomm,项目名称:jbs,代码行数:15,代码来源:Regulars.php

示例10: GetTime

function GetTime($Data)
{
    #-------------------------------------------------------------------------------
    if (Preg_Match('/^[0-9]+$/', $Data)) {
        return $Data;
    }
    #-------------------------------------------------------------------------------
    $Date = @Date_Parse($Data);
    #-------------------------------------------------------------------------------
    if (!Is_Array($Date)) {
        return ERROR | @Trigger_Error('[GetTime]: ошибка получения даты');
    }
    #-------------------------------------------------------------------------------
    return MkTime($Date['hour'], $Date['minute'], $Date['second'], $Date['month'], $Date['day'], $Date['year']);
    #-------------------------------------------------------------------------------
}
开发者ID:carriercomm,项目名称:jbs,代码行数:16,代码来源:Standard.php

示例11: smarty_function_menu_left

function smarty_function_menu_left($params, $smarty)
{
    $MenuPath = $params['MenuPath'];
    if (!$MenuPath) {
        return FALSE;
    }
    $XML = Styles_Menu($MenuPath);
    if (Is_Error($XML)) {
        return ERROR | @Trigger_Error(500);
    }
    $items = $XML['Items'];
    if (!Count($items)) {
        return FALSE;
    }
    //echo print_r($items);
    $smarty->assign('items', array_values($items));
    $smarty->display('Menus/Left.tpl');
}
开发者ID:carriercomm,项目名称:jbs,代码行数:18,代码来源:function.menu_left.php

示例12: Md5

function &Config()
{
    #-------------------------------------------------------------------------------
    $Name = Md5('Config');
    #-------------------------------------------------------------------------------
    if (!isset($GLOBALS[$Name])) {
        #-------------------------------------------------------------------------------
        $GLOBALS[$Name] = System_XML('config/Config.xml');
        if (Is_Error($GLOBALS[$Name])) {
            return ERROR | Trigger_Error('[Config]: не удалось загрузить основную конфигурацию');
        }
        #-------------------------------------------------------------------------------
    }
    #-------------------------------------------------------------------------------
    #-------------------------------------------------------------------------------
    return $GLOBALS[$Name];
    #-------------------------------------------------------------------------------
    #-------------------------------------------------------------------------------
}
开发者ID:carriercomm,项目名称:jbs,代码行数:19,代码来源:Config.php

示例13: smarty_function_table

function smarty_function_table($params, $smarty)
{
    $tableName = $params['name'];
    if (!$tableName) {
        return "";
    }
    $DOM = new DOM();
    $Links =& Links();
    # Коллекция ссылок
    $Links['DOM'] =& $DOM;
    $comp = Comp_Load('Tables/Super', $tableName);
    if (Is_Error($comp)) {
        return ERROR | @Trigger_Error(500);
    }
    $DOM->Object = $comp;
    $Out = $DOM->Build();
    if (Is_Error($Out)) {
        return ERROR | @Trigger_Error(500);
    }
    return $Out;
}
开发者ID:carriercomm,项目名称:jbs,代码行数:21,代码来源:function.table.php

示例14: CreateMap

function CreateMap($ID, &$ParentNode)
{
    #-----------------------------------------------------------------------------
    $Group = DB_Select('Groups', '*', array('UNIQ', 'ID' => $ID));
    #-----------------------------------------------------------------------------
    switch (ValueOf($Group)) {
        case 'error':
            return ERROR | @Trigger_Error(500);
        case 'exception':
            return ERROR | @Trigger_Error(400);
        case 'array':
            #-------------------------------------------------------------------------
            $Node = new Tag('node', array('TEXT' => $Group['Name'], 'STYLE' => 'bubble', 'BACKGROUND_COLOR' => $Group['IsDepartment'] ? '#F07D00' : '#F9E47D'), new Tag('edge', array('STYLE' => 'sharp_bezier', 'COLOR' => '#D5F66C', 'WIDTH' => 5)), new Tag('font', array('BOLD' => 'true', 'NAME' => 'SansSerif', 'SIZE' => 14)), new Tag('icon', array('BUILTIN' => 'none')));
            #-------------------------------------------------------------------------
            $Childs = DB_Select('Groups', '*', array('Where' => SPrintF('`ParentID` = %u AND `ParentID` != `ID`', $Group['ID'])));
            #-------------------------------------------------------------------------
            switch (ValueOf($Childs)) {
                case 'error':
                    return ERROR | @Trigger_Error(500);
                case 'exception':
                    # No more...
                    break;
                case 'array':
                    #---------------------------------------------------------------------
                    foreach ($Childs as $Child) {
                        CreateMap($Child['ID'], $Node);
                    }
                    break;
                default:
                    return ERROR | @Trigger_Error(101);
            }
            #-------------------------------------------------------------------------
            $ParentNode->AddChild($Node);
            #-------------------------------------------------------------------------
            return TRUE;
        default:
            return ERROR | @Trigger_Error(101);
    }
}
开发者ID:carriercomm,项目名称:jbs,代码行数:39,代码来源:GroupsMap.xml.comp.php

示例15: smarty_function_top_panel

function smarty_function_top_panel($params, $smarty)
{
    if (isset($GLOBALS['__USER'])) {
        $__USER = $GLOBALS['__USER'];
        if (Is_Null($__USER)) {
            return ERROR | @Trigger_Error(400);
        }
        $menuPath = SPrintF('%s/TopPanel', $__USER['InterfaceID']);
        $items = Styles_Menu($menuPath);
        if (Is_Error($items)) {
            return ERROR | @Trigger_Error(500);
        }
        $items =& $items['Items'];
        //return print_r(array_values($items));
        $smarty->assign('items', array_values($items));
        $__USER = $GLOBALS['__USER'];
        $smarty->assign('userName', $__USER['Name']);
        $smarty->display('TopPanel/User.tpl');
    } else {
        $smarty->display('TopPanel/Logon.tpl');
    }
}
开发者ID:carriercomm,项目名称:jbs,代码行数:22,代码来源:function.top_panel.php


注:本文中的Trigger_Error函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。