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


PHP Publisher::AddContent方法代码示例

本文整理汇总了PHP中Publisher::AddContent方法的典型用法代码示例。如果您正苦于以下问题:PHP Publisher::AddContent方法的具体用法?PHP Publisher::AddContent怎么用?PHP Publisher::AddContent使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Publisher的用法示例。


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

示例1: editTemplate

 /**
  * 
  * @url GET /editTemplate
  */
 public function editTemplate($params)
 {
     // Action Validations
     if (!isset($_REQUEST['TEMPLATE'])) {
         $_REQUEST['TEMPLATE'] = '';
     }
     if ($_REQUEST['TEMPLATE'] == '') {
         throw new Exception('The TEMPLATE parameter is empty.');
     }
     $data = array('CONTENT' => file_get_contents(PATH_DATA_MAILTEMPLATES . $_REQUEST['PRO_UID'] . PATH_SEP . $_REQUEST['TEMPLATE']), 'TEMPLATE' => $_REQUEST['TEMPLATE']);
     global $G_PUBLISH;
     $G_PUBLISH = new Publisher();
     $G_PUBLISH->AddContent('xmlform', 'xmlform', 'actionsByEmail/actionsByEmail_FileEdit', '', $data);
     G::RenderPage('publish', 'raw');
     die;
 }
开发者ID:emildev35,项目名称:processmaker,代码行数:20,代码来源:ActionsByEmail.php

示例2: catch

            //adding a javascript file .js
            G::RenderPage('publish', 'extJs');
            die;
            break;
        case 'JRXML':
        case 'ACROFORM':
            $type = $aFields['OUT_DOC_TYPE'];
            if ($type == 'JRXML') {
                $extension = 'jrxml';
            }
            if ($type == 'ACROFORM') {
                $extension = 'pdf';
            }
            // The ereg_replace function has been DEPRECATED as of PHP 5.3.0.
            // $downFileName = ereg_replace('[^A-Za-z0-9_]', '_', $aFields['OUT_DOC_TITLE'] ) . '.' . $extension;
            $downFileName = preg_replace('/[^A-Za-z0-9_]/i', '_', $aFields['OUT_DOC_TITLE']) . '.' . $extension;
            $filename = PATH_DYNAFORM . $aFields['PRO_UID'] . PATH_SEP . $aFields['OUT_DOC_UID'] . '.' . $extension;
            if (file_exists($filename)) {
                $aFields['FILENAME'] = $downFileName;
            } else {
                $aFields['FILENAME'] = '';
            }
            $aFields['FILELINK'] = '../outputdocs/downloadFile?' . $aFields['OUT_DOC_UID'];
            $G_PUBLISH->AddContent('xmlform', 'xmlform', 'outputdocs/outputdocsUploadFile', '', $aFields, '../outputdocs/uploadFile');
            $G_PUBLISH->AddContent('view', 'outputdocs/editJrxml');
            break;
    }
    G::RenderPage('publish', 'raw');
} catch (Exception $oException) {
    die($oException->getMessage());
}
开发者ID:nshong,项目名称:processmaker,代码行数:31,代码来源:outputdocs_Edit.php

示例3: DBConnection

 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 * 
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 * 
 * For more information, contact Colosa Inc, 2566 Le Jeune Rd., 
 * Coral Gables, FL, 33134, USA, or email info@colosa.com.
 * 
 */
$G_MAIN_MENU = "rbac";
$G_SUB_MENU = "rbac.userEdit";
$G_MENU_SELECTED = 0;
$uid = $HTTP_SESSION_VARS['CURRENT_USER'];
$dbc = new DBConnection(DB_HOST, DB_RBAC_USER, DB_RBAC_PASS, DB_RBAC_NAME);
$ses = new DBSession($dbc);
$stQry = "SELECT UID, USR_USE_LDAP FROM USERS where UID = {$uid} ";
$dset = $ses->Execute($stQry);
$row = $dset->Read();
$useLdap = $row['USR_USE_LDAP'] == 'Y';
$access = $RBAC->userCanAccess("RBAC_CREATE_USERS");
G::LoadClassRBAC("user");
$obj = new RBAC_User();
$obj->SetTo($dbc);
$obj->Load($uid);
$G_PUBLISH = new Publisher();
$G_PUBLISH->SetTo($dbc);
$G_PUBLISH->AddContent("xmlform", "xmlform", "rbac/userChangeLdap", "", $obj->Fields, "userChangeLdap2");
G::RenderPage("publish");
开发者ID:emildev35,项目名称:processmaker,代码行数:31,代码来源:userChangeLdap.php

示例4: setupPlugins

 /**
  * get setup Plugins
  *
  * @param unknown_type $default
  * @return void
  */
 function setupPlugins()
 {
     try {
         $iPlugins = 0;
         G::LoadClass('serverConfiguration');
         $oServerConf =& serverConf::getSingleton();
         $oServerConf->addPlugin(SYS_SYS, $this->_aPluginDetails);
         foreach ($this->_aPluginDetails as $namespace => $detail) {
             if (isset($detail->enabled) && $detail->enabled) {
                 if (!empty($detail->sFilename) && file_exists($detail->sFilename)) {
                     if (strpos($detail->sFilename, PATH_SEP) !== false) {
                         $aux = explode(PATH_SEP, $detail->sFilename);
                     } else {
                         $aux = explode(chr(92), $detail->sFilename);
                     }
                     $sFilename = PATH_PLUGINS . $aux[count($aux) - 1];
                     if (!file_exists($sFilename)) {
                         continue;
                     }
                     require_once $sFilename;
                     if (class_exists($detail->sClassName)) {
                         $oPlugin = new $detail->sClassName($detail->sNamespace, $detail->sFilename);
                         $this->_aPlugins[$detail->sNamespace] = $oPlugin;
                         $iPlugins++;
                         $oPlugin->setup();
                     }
                 }
             }
         }
         $this->eevalidate();
         return $iPlugins;
     } catch (Exception $e) {
         global $G_PUBLISH;
         $aMessage['MESSAGE'] = $e->getMessage();
         $G_PUBLISH = new Publisher();
         $G_PUBLISH->AddContent('xmlform', 'xmlform', 'login/showMessage', '', $aMessage);
         G::RenderPage('publish');
         die;
     }
 }
开发者ID:nshong,项目名称:processmaker,代码行数:46,代码来源:class.pluginRegistry.php

示例5: Translation

 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program. If not, see <http://www.gnu.org/licenses/>.
 *
 * For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
 * Coral Gables, FL, 33134, USA, or email info@colosa.com.
 */
require_once "classes/model/Translation.php";
$t = new Translation();
$fields = Translation::generateFileTranslation('en');
$G_MAIN_MENU = 'tools';
$G_SUB_MENU = 'toolsTranslations';
$G_ID_MENU_SELECTED = 'TRANSLATION';
$G_ID_SUB_MENU_SELECTED = 'TRANSLATION_REBUILD';
$G_PUBLISH = new Publisher();
$G_PUBLISH->AddContent('xmlform', 'xmlform', 'tools/updateTranslation', '', $fields);
if (isset($_SESSION['TOOLS_VIEWTYPE']) && $_SESSION['TOOLS_VIEWTYPE'] == 'blank') {
    G::RenderPage('publishBlank', 'green-submenu');
} else {
    G::RenderPage('publish');
}
开发者ID:emildev35,项目名称:processmaker,代码行数:31,代码来源:updateTranslation.php

示例6: RenderPage

 /**
  * Render Page
  *
  * @author Fernando Ontiveros Lira <fernando@colosa.com>
  * @access public
  * @param object $objContent
  * @param string $strTemplate
  * @param string $strSkin
  * @return void
  */
 public function RenderPage($strTemplate = "default", $strSkin = SYS_SKIN, $objContent = null, $layout = '')
 {
     global $G_CONTENT;
     global $G_TEMPLATE;
     global $G_SKIN;
     global $G_PUBLISH;
     $G_CONTENT = $objContent;
     $G_TEMPLATE = $strTemplate;
     $G_SKIN = $strSkin;
     try {
         $file = G::ExpandPath('skinEngine') . 'skinEngine.php';
         include $file;
         $skinEngine = new SkinEngine($G_TEMPLATE, $G_SKIN, $G_CONTENT);
         $skinEngine->setLayout($layout);
         $skinEngine->dispatch();
     } catch (Exception $e) {
         global $G_PUBLISH;
         if (is_null($G_PUBLISH)) {
             $G_PUBLISH = new Publisher();
         }
         if (count($G_PUBLISH->Parts) == 1) {
             array_shift($G_PUBLISH->Parts);
         }
         global $oHeadPublisher;
         $leimnudInitString = $oHeadPublisher->leimnudInitString;
         $oHeadPublisher->clearScripts();
         $oHeadPublisher->leimnudInitString = $leimnudInitString;
         $oHeadPublisher->addScriptFile('/js/maborak/core/maborak.js');
         $G_PUBLISH->AddContent('xmlform', 'xmlform', 'login/showMessage', null, array('MESSAGE' => $e->getMessage()));
         if (class_exists('SkinEngine')) {
             $skinEngine = new SkinEngine('publish', 'blank', '');
             $skinEngine->dispatch();
         } else {
             die($e->getMessage());
         }
     }
 }
开发者ID:nhenderson,项目名称:processmaker,代码行数:47,代码来源:class.g.php

示例7: render_htmledit

 /**
  * Prints the Dynaform in format HTML
  *
  * @param object $A
  * @return array
  */
 public function render_htmledit($A)
 {
     $script = '';
     $file = G::decrypt($A, URL_KEY);
     ob_start();
     global $G_PUBLISH;
     $form = new Form($file, PATH_DYNAFORM, SYS_LANG, true);
     $G_PUBLISH = new Publisher();
     $G_PUBLISH->publisherId = '';
     $html = $this->get_htmlcode($A);
     if (!is_string($html)) {
         $error = $html;
         $html = '';
     } else {
         $error = 0;
     }
     $HtmlEditor = array('URL' => $A, 'HTML' => $html, 'DYN_UID' => $file);
     $G_PUBLISH->AddContent('xmlform', 'xmlform', 'dynaforms/dynaforms_HtmlEditor', '', $HtmlEditor, '', '');
     G::RenderPage("publish", 'raw');
     return array('error' => $error, 'html' => ob_get_clean());
 }
开发者ID:bqevin,项目名称:processmaker,代码行数:27,代码来源:class.dynaformEditor.php

示例8: DBConnection

 * ProcessMaker Open Source Edition
 * Copyright (C) 2004 - 2008 Colosa Inc.23
 * 
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 * 
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 * 
 * For more information, contact Colosa Inc, 2566 Le Jeune Rd., 
 * Coral Gables, FL, 33134, USA, or email info@colosa.com.
 * 
 */
$G_MAIN_MENU = "rbac";
$G_BACK_PAGE = "rbac/appList";
$G_SUB_MENU = "cancel";
$G_MENU_SELECTED = 1;
$dbc = new DBConnection(DB_HOST, DB_RBAC_USER, DB_RBAC_PASS, DB_RBAC_NAME);
$G_PUBLISH = new Publisher();
$G_PUBLISH->SetTo($dbc);
$G_PUBLISH->AddContent("xmlform", "xmlform", "rbac/appNew", "", "", "appNew2");
$content = '';
//G::LoadContent( "rbac/myApp" );
G::RenderPage("publish");
开发者ID:emildev35,项目名称:processmaker,代码行数:31,代码来源:appView.php

示例9: Publisher

 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program. If not, see <http://www.gnu.org/licenses/>.
 *
 * For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
 * Coral Gables, FL, 33134, USA, or email info@colosa.com.
 */
$G_PUBLISH = new Publisher();
$fileGetStart = PATH_SKINS . SYS_SKIN . PATH_SEP . 'login_getStarted.html';
if (!file_exists($fileGetStart)) {
    $fileGetStart = PATH_SKIN_ENGINE . SYS_SKIN . PATH_SEP . 'login_getStarted.html';
    if (!file_exists($fileGetStart)) {
        $fileGetStart = PATH_CUSTOM_SKINS . SYS_SKIN . PATH_SEP . 'login_getStarted.html';
        if (!file_exists($fileGetStart)) {
            $fileGetStart = PATH_TPL . 'services/login_getStarted.html';
        }
    }
}
$oTemplatePower = new TemplatePower($fileGetStart);
$oTemplatePower->prepare();
/*
$oTemplatePower->newBlock('users');
$oTemplatePower->assign('USR_UID', $aUser['USR_UID']);
$oTemplatePower->assign('USR_FULLNAME', $aData['USR_FIRSTNAME'] . ' ' . $aData['USR_LASTNAME'] . ' (' . $aData['USR_USERNAME'] . ')');
*/
$oTemplatePower->assign("URL_MABORAK_JS", G::browserCacheFilesUrl("/js/maborak/core/maborak.js"));
$G_PUBLISH->AddContent('template', '', '', '', $oTemplatePower);
G::RenderPage('publish', 'raw');
开发者ID:bqevin,项目名称:processmaker,代码行数:31,代码来源:login_getStarted.php

示例10: DBConnection

 * ProcessMaker Open Source Edition
 * Copyright (C) 2004 - 2008 Colosa Inc.23
 * 
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 * 
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 * 
 * For more information, contact Colosa Inc, 2566 Le Jeune Rd., 
 * Coral Gables, FL, 33134, USA, or email info@colosa.com.
 * 
 */
$G_MAIN_MENU = "rbac";
$G_SUB_MENU = "rbac.role";
$G_MENU_SELECTED = 1;
$canCreateRole = $RBAC->userCanAccess("RBAC_CREATE_ROLE");
$dbc = new DBConnection(DB_HOST, DB_RBAC_USER, DB_RBAC_PASS, DB_RBAC_NAME);
$G_PUBLISH = new Publisher();
$G_PUBLISH->SetTo($dbc);
$G_PUBLISH->AddContent("view", "treeRole");
$content = '';
//G::LoadContent( "rbac/myApp" );
G::RenderPage("publish");
开发者ID:emildev35,项目名称:processmaker,代码行数:31,代码来源:roleList.php

示例11: DBConnection

/**
 * connectionDB.php
 *
 * ProcessMaker Open Source Edition
 * Copyright (C) 2004 - 2008 Colosa Inc.23
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program. If not, see <http://www.gnu.org/licenses/>.
 *
 * For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
 * Coral Gables, FL, 33134, USA, or email info@colosa.com.
 */
if (($RBAC_Response = $RBAC->userCanAccess("PM_SETUP")) != 1) {
    return $RBAC_Response;
}
$G_ENABLE_BLANK_SKIN = true;
$dbc = new DBConnection();
$G_PUBLISH = new Publisher();
$G_PUBLISH->AddContent("xmlform", "pagedTable", "setup/connection_db", "", "", "");
G::RenderPage('publish');
开发者ID:emildev35,项目名称:processmaker,代码行数:30,代码来源:connectionDB.php

示例12: Publisher

 * Copyright (C) 2004 - 2008 Colosa Inc.23
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program. If not, see <http://www.gnu.org/licenses/>.
 *
 * For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
 * Coral Gables, FL, 33134, USA, or email info@colosa.com.
 */
global $RBAC;
if ($RBAC->userCanAccess('PM_SETUP_ADVANCE') != 1) {
    G::SendTemporalMessage('ID_USER_HAVENT_RIGHTS_PAGE', 'error', 'labels');
    G::header('location: ../login/login');
    die;
}
$G_MAIN_MENU = 'processmaker';
//$G_SUB_MENU             = 'users';
$G_ID_MENU_SELECTED = 'USERS';
//$G_ID_SUB_MENU_SELECTED = '-';
$G_PUBLISH = new Publisher();
$G_PUBLISH->AddContent('xmlform', 'xmlform', 'users/users_AuthSource', '', $RBAC->load($_GET['USR_UID']), '../users/users_AuthSourceSave');
G::RenderPage('publish', 'blank');
开发者ID:emildev35,项目名称:processmaker,代码行数:31,代码来源:users_AuthSource.php

示例13: setSelect

G::LoadClass( 'dbConnections' );
$oDbConnections = new dbConnections( $_SESSION['PROCESS'] );
$oDbConnections->loadAdditionalConnections();

$G_PUBLISH = new Publisher();
if ($_GET['DYN_UID'] != '') {
    $_SESSION['CURRENT_DYN_UID'] = $_GET['DYN_UID'];
    G::LoadClass('pmDynaform');
    $FieldsPmDynaform = $Fields;
    $FieldsPmDynaform["PRO_UID"] = $_SESSION['PROCESS'];
    $FieldsPmDynaform["CURRENT_DYNAFORM"] = $_GET['DYN_UID'];
    $a = new pmDynaform($FieldsPmDynaform);
    if ($a->isResponsive()) {
        $a->printView();
    }else{
        $G_PUBLISH->AddContent( 'dynaform', 'xmlform', $_SESSION['PROCESS'] . '/' . $_GET['DYN_UID'], '', $Fields['APP_DATA'], 'cases_SaveDataSupervisor?UID=' . $_GET['DYN_UID'] );
    }
}

G::RenderPage( 'publish', 'blank' );

if (! isset( $_GET['ex'] )) {
    $_GET['ex'] = $_GET['position'];
}
?>

<script>
/*------------------------------ To Revise Routines ---------------------------*/
// DEPRECATED this JS section is marked for removal
function setSelect()
{
开发者ID:rrsc,项目名称:processmaker,代码行数:31,代码来源:cases_StepToRevise.php

示例14: isset

 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 * 
 * For more information, contact Colosa Inc, 2566 Le Jeune Rd., 
 * Coral Gables, FL, 33134, USA, or email info@colosa.com.
 * 
 */
$G_MAIN_MENU = "rbac";
$G_BACK_PAGE = "rbac/permList";
$G_SUB_MENU = "cancel";
$G_MENU_SELECTED = 1;
$permid = isset($_GET['UID']) ? $_GET['UID'] : '';
//$URI_VARS[0];
$HTTP_SESSION_VARS['CURRENT_PERM_PARENT'] = $permid;
$dbc = new DBConnection(DB_HOST, DB_RBAC_USER, DB_RBAC_PASS, DB_RBAC_NAME);
$G_PUBLISH = new Publisher();
$G_PUBLISH->SetTo($dbc);
$fields['APPID'] = $_SESSION['CURRENT_APPLICATION'];
if (PEAR_DATABASE == 'pgsql') {
    $CONCAT1 = "APP_CODE || \" - \" || APP_DESCRIPTION ";
    $CONCAT2 = "PRM_CODE || \" - \" || PRM_DESCRIPTION ";
} else {
    $CONCAT1 = "CONCAT(APP_CODE,\" - \",APP_DESCRIPTION) ";
    $CONCAT2 = "CONCAT(PRM_CODE,\" - \",PRM_DESCRIPTION) ";
}
$fields['CONCAT1'] = $CONCAT1;
$fields['CONCAT2'] = $CONCAT2;
$fields['PERMID'] = $permid;
$G_PUBLISH->AddContent("xmlform", "xmlform", "rbac/permNew", "", $fields, "permNew2");
$content = '';
//G::LoadContent( "rbac/myApp" );
G::RenderPage("publish");
开发者ID:emildev35,项目名称:processmaker,代码行数:31,代码来源:permNew.php

示例15: Content

         $oContent = new Content();
         $DBS_UID = $_POST['dbs_uid'];
         $PRO_UID = $_SESSION['PROCESS'];
         $oDBSource->remove($DBS_UID, $PRO_UID);
         $oContent->removeContent('DBS_DESCRIPTION', "", $DBS_UID);
         $result->success = true;
         $result->msg = G::LoadTranslation('ID_DBCONNECTION_REMOVED');
     } catch (Exception $e) {
         $result->success = false;
         $result->msg = $e->getMessage();
     }
     print G::json_encode($result);
     break;
 case 'showTestConnection':
     $G_PUBLISH = new Publisher();
     $G_PUBLISH->AddContent('view', 'dbConnections/dbConnections');
     G::RenderPage('publish', 'raw');
     break;
 case 'testConnection':
     sleep(0);
     $step = $_POST['step'];
     $type = $_POST['type'];
     $server = $_POST['server'];
     $db_name = $_POST['db_name'];
     $user = $_POST['user'];
     $passwd = $_POST['passwd'] == 'none' ? "" : $_POST['passwd'];
     $port = $_POST['port'];
     if ($port == 'none' || $port == 0) {
         //setting defaults ports
         switch ($type) {
             case 'mysql':
开发者ID:bqevin,项目名称:processmaker,代码行数:31,代码来源:dbConnectionsAjax.php


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