• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP modification函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: modelFromDirectory

 /**
  * Allows loading from a specified directory instead of DIR_APPLICATION
  *
  * @param $model
  * @param $directory
  * @throws Exception when file was not found
  */
 private function modelFromDirectory($model, $directory)
 {
     if (!$directory) {
         $directory = DIR_APPLICATION;
     }
     $file = $directory . '/model/' . $model . '.php';
     $class = 'Model' . preg_replace('/[^a-zA-Z0-9]/', '', $model);
     if (file_exists($file)) {
         if (class_exists('VQMod')) {
             include_once VQMod::modCheck(modification($file), $file);
         } else {
             include_once $file;
         }
         $this->registry->set('model_' . str_replace('/', '_', $model), new $class($this->registry));
     } else {
         throw new Exception('Model not found', 404);
     }
 }
开发者ID:projectwife,项目名称:tesitoo-opencart,代码行数:25,代码来源:loader.php


示例2: autoload

function autoload($class)
{
    $file = DIR_SYSTEM . 'library/' . str_replace('\\', '/', strtolower($class)) . '.php';
    if (is_file($file)) {
        include_once VQMod::modCheck(modification($file), $file);
        return true;
    }
    return false;
}
开发者ID:rootcave,项目名称:9livesprints-web,代码行数:9,代码来源:vq2-system_startup.php


示例3: library

function library($class)
{
    $file = DIR_SYSTEM . 'library/' . str_replace('\\', '/', strtolower($class)) . '.php';
    if (is_file($file)) {
        include_once modification($file);
        return true;
    } else {
        return false;
    }
}
开发者ID:huangguozhen,项目名称:opencart,代码行数:10,代码来源:startup.php


示例4: helper

 public function helper($helper)
 {
     $file = DIR_SYSTEM . 'helper/' . str_replace('../', '', (string) $helper) . '.php';
     if (file_exists($file)) {
         include_once VQMod::modCheck(modification($file), $file);
     } else {
         trigger_error('Error: Could not load helper ' . $file . '!');
         exit;
     }
 }
开发者ID:phucsystem,项目名称:sannhaonline,代码行数:10,代码来源:vq2-system_storage_modification_system_engine_loader.php


示例5: autoload

function autoload($class)
{
    $file = DIR_SYSTEM . 'library/' . str_replace('\\', '/', strtolower($class)) . '.php';
    if (file_exists($file)) {
        include modification($file);
        return true;
    } else {
        return false;
    }
}
开发者ID:Andreyalex,项目名称:corsica,代码行数:10,代码来源:startup.php


示例6: helper

 public function helper($helper)
 {
     $file = DIR_SYSTEM . 'helper/' . $helper . '.php';
     if (file_exists($file)) {
         include_once modification($file);
     } else {
         trigger_error('Error: Could not load helper ' . $file . '!');
         exit;
     }
 }
开发者ID:Gimalca,项目名称:shlophili,代码行数:10,代码来源:loader.php


示例7: getVisits

 public function getVisits()
 {
     require_once modification(DIR_SYSTEM . 'library/google-apps/Client.php');
     require_once modification(DIR_SYSTEM . 'library/google-apps/autoload.php');
     $client = new Google_Client();
     $client->setApplicationName("conect-analycts-irroba");
     $client->setDeveloperKey("AIzaSyChTrzm8478VMmKSFW1ImuJfZYnaNdwLyc");
     $analytcs = new Google_Service_Analytics($client);
     $metrics = array('ga:pageviews');
     exit(print_r($analytcs->data_realtime->get('ga:99821030', '2015-04-01', '2015-04-15', $metrics, $optParams = array())));
 }
开发者ID:luanmpereira,项目名称:default-store,代码行数:11,代码来源:analytics.php


示例8: load

 /**
  * @param string $filename
  */
 public function load($filename)
 {
     $file = DIR_CONFIG . $filename . '.php';
     if (file_exists($file)) {
         $_ = array();
         require modification($file);
         $this->data = array_merge($this->data, $_);
     } else {
         trigger_error('Error: Could not load config ' . $filename . '!');
         exit;
     }
 }
开发者ID:yariknechyporuk,项目名称:granika,代码行数:15,代码来源:config.php


示例9: load

 public function load($filename)
 {
     $_ = array();
     $files = array(DIR_LANGUAGE . $this->default . '/' . $filename . '.php', DIR_LANGUAGE . $this->directory . '/' . 'default.php', DIR_LANGUAGE . $this->directory . '/' . $filename . '.php');
     foreach ($files as $file) {
         if (file_exists($file)) {
             require modification($file);
         }
     }
     $this->data = array_merge($this->data, $_);
     return $this->data;
 }
开发者ID:AndreyLikhoman,项目名称:electrotopka,代码行数:12,代码来源:language.php


示例10: autoload

function autoload($class)
{
    $lib = DIR_SYSTEM . 'library/' . str_replace('\\', '/', strtolower($class)) . '.php';
    $app = DIR_SYSTEM . 'library/app/' . str_replace('\\', '/', strtolower($class)) . '.php';
    if (is_file($lib)) {
        include modification($lib);
        return true;
    } elseif (is_file($app)) {
        include modification($app);
        return true;
    }
    return false;
}
开发者ID:LinuxJedi,项目名称:arastta,代码行数:13,代码来源:startup.php


示例11: load

 public function load($filename)
 {
     $_ = array();
     $file = DIR_LANGUAGE . $this->default . '/' . $filename . '.php';
     if (file_exists($file)) {
         require modification($file);
     }
     $file = DIR_LANGUAGE . $this->directory . '/' . $filename . '.php';
     if (file_exists($file)) {
         require modification($file);
     }
     $this->data = array_merge($this->data, $_);
     return $this->data;
 }
开发者ID:mvnp,项目名称:nc_supplements,代码行数:14,代码来源:language.php


示例12: load

 public function load($filename)
 {
     if (defined('HTTP_CATALOG') && version_compare(VERSION, '2.1', '>=') && strpos($filename, 'sale/custom') === 0) {
         $filename = substr_replace($filename, 'customer', 0, 4);
     }
     //+mod by yp
     $_ = array();
     $file = DIR_LANGUAGE . $this->default . '/' . $filename . '.php';
     if (file_exists($file)) {
         require modification($file);
     }
     $file = DIR_LANGUAGE . $this->directory . '/' . $filename . '.php';
     if (file_exists($file)) {
         require modification($file);
     }
     $this->data = array_merge($this->data, $_);
     return $this->data;
 }
开发者ID:pedrocones,项目名称:store,代码行数:18,代码来源:language.php


示例13: execute

 public function execute($registry)
 {
     // Stop any magical methods being called
     if (substr($this->method, 0, 2) == '__') {
         return false;
     }
     if (is_file($this->file)) {
         include_once modification($this->file);
         $class = $this->class;
         $controller = new $class($registry);
         if (is_callable(array($controller, $this->method))) {
             return call_user_func(array($controller, $this->method), $this->args);
         } else {
             return false;
         }
     } else {
         return false;
     }
 }
开发者ID:alphaouyang,项目名称:opencart,代码行数:19,代码来源:action.php


示例14: override

 public function override($filename)
 {
     $_ = array();
     $file = Client::getDir() . 'language/' . 'override/' . $this->directory . '/' . $filename . '.php';
     if (file_exists($file)) {
         require modification($file);
     }
     $this->data = array_merge($this->data, $_);
     return $this->data;
 }
开发者ID:hoanglehuu,项目名称:arastta,代码行数:10,代码来源:language.php


示例15: index

 public function index()
 {
     $this->document->setPage('login');
     require_once modification(DIR_SYSTEM . 'library/google_api/Google_Client.php');
     require_once modification(DIR_SYSTEM . 'library/google_api/contrib/Google_Oauth2Service.php');
     if ($this->request->server['HTTPS']) {
         $server = $this->config->get('config_ssl');
     } else {
         $server = $this->config->get('config_url');
     }
     $this->load->model('account/customer');
     // Login override for admin users
     if (!empty($this->request->get['token'])) {
         $this->event->trigger('pre.customer.login');
         $this->customer->logout();
         $this->cart->clear();
         unset($this->session->data['wishlist']);
         unset($this->session->data['payment_address']);
         unset($this->session->data['payment_method']);
         unset($this->session->data['payment_methods']);
         unset($this->session->data['shipping_address']);
         unset($this->session->data['shipping_method']);
         unset($this->session->data['shipping_methods']);
         unset($this->session->data['comment']);
         unset($this->session->data['order_id']);
         unset($this->session->data['coupon']);
         unset($this->session->data['reward']);
         unset($this->session->data['voucher']);
         unset($this->session->data['vouchers']);
         $customer_info = $this->model_account_customer->getCustomerByToken($this->request->get['token']);
         if ($customer_info && $this->customer->login($customer_info['email'], '', true)) {
             // Default Addresses
             $this->load->model('account/address');
             if ($this->config->get('config_tax_customer') == 'payment') {
                 $this->session->data['payment_address'] = $this->model_account_address->getAddress($this->customer->getAddressId());
             }
             $this->session->data['login_aps'] = true;
             if ($this->config->get('config_tax_customer') == 'shipping') {
                 $this->session->data['shipping_address'] = $this->model_account_address->getAddress($this->customer->getAddressId());
             }
             $this->event->trigger('post.customer.login');
             $this->response->redirect($server . URL_ACCOUNT);
         }
     }
     if (!$this->request->server['HTTPS'] && $this->config->get('config_secure')) {
         $this->response->redirect(HTTPS_SERVER . URL_LOGIN);
     }
     if ($this->customer->isLogged()) {
         if ($this->cart->hasProducts()) {
             $minimum_purchase = $this->cart->hasMinimumPurchase();
             if ($minimum_purchase && (isset($minimum_purchase['requirements']) && !$minimum_purchase['requirements'])) {
                 $this->response->redirect($server . URL_CART);
             } else {
                 if (isset($this->session->data['recovered']) && $this->session->data['recovered']) {
                     $this->response->redirect($server . URL_CART);
                 } else {
                     $this->response->redirect($server . URL_CHECKOUT);
                 }
             }
         } else {
             $this->response->redirect($server . URL_ACCOUNT);
         }
     }
     // Add to activity log
     $this->load->model('account/activity');
     $this->load->language('account/login');
     $this->document->setTitle($this->language->get('heading_title'));
     if ($this->request->server['REQUEST_METHOD'] == 'POST' && $this->validate()) {
         unset($this->session->data['guest']);
         unset($this->session->data['login_register']);
         // Default Shipping Address
         $this->load->model('account/address');
         if ($this->config->get('config_tax_customer') == 'payment') {
             $this->session->data['payment_address'] = $this->model_account_address->getAddress($this->customer->getAddressId());
         }
         if ($this->config->get('config_tax_customer') == 'shipping') {
             $this->session->data['shipping_address'] = $this->model_account_address->getAddress($this->customer->getAddressId());
         }
         $activity_data = array('customer_id' => $this->customer->getId(), 'name' => $this->customer->getFirstName() . ' ' . $this->customer->getLastName());
         $this->model_account_activity->addActivity('login', $activity_data);
         if ($this->cart->hasProducts()) {
             $this->session->data['login_register'] = true;
             $minimum_purchase = $this->cart->hasMinimumPurchase();
             if ($minimum_purchase && (isset($minimum_purchase['requirements']) && !$minimum_purchase['requirements'])) {
                 $this->response->redirect($server . URL_CART);
             } else {
                 if (isset($this->session->data['recovered']) && $this->session->data['recovered']) {
                     $this->response->redirect($server . URL_CART);
                 } else {
                     $this->response->redirect($server . URL_CHECKOUT);
                 }
             }
         } else {
             if (isset($this->session->data['checkout_cadastre'])) {
                 unset($this->session->data['checkout_cadastre']);
                 $this->response->redirect($server . URL_REGISTER);
             }
         }
         if (isset($this->request->post['redirect']) && (strpos($this->request->post['redirect'], $this->config->get('config_url')) !== false || strpos($this->request->post['redirect'], $this->config->get('config_ssl')) !== false)) {
             $this->response->redirect(str_replace('&', '&', $this->request->post['redirect']));
//.........这里部分代码省略.........
开发者ID:luanmpereira,项目名称:default-store,代码行数:101,代码来源:login.php


示例16: uninstall

 public function uninstall()
 {
     $this->loadLanguage('extension/ka_extensions');
     if (!$this->user->hasPermission('modify', 'extension/ka_extensions') && !$this->user->hasPermission('modify', 'user/user_permission')) {
         $this->addTopMessage($this->language->get('error_permission'), 'E');
         $this->redirect($this->url->link('extension/ka_extensions', 'token=' . $this->session->data['token'], 'SSL'));
     } else {
         $this->load->model('extension/extension');
         $this->load->model('setting/setting');
         $this->model_extension_extension->uninstall('ka_extensions', $this->request->get['extension']);
         $this->model_setting_setting->deleteSetting($this->request->get['extension']);
         require_once modification(DIR_APPLICATION . 'controller/ka_extensions/' . $this->request->get['extension'] . '.php');
         $class = 'ControllerKaExtensions' . str_replace('_', '', $this->request->get['extension']);
         $class = new $class($this->registry);
         if (method_exists($class, 'uninstall')) {
             $class->uninstall();
         }
         $this->redirect($this->url->link('extension/ka_extensions', 'token=' . $this->session->data['token'], 'SSL'));
     }
 }
开发者ID:Gimalca,项目名称:shlophili,代码行数:20,代码来源:ka_extensions.php


示例17: modification

		[required] => 
		[sort_order] => 1 
	)
)
*/
//session_unset();
/**
 * Class of Ajax Quick Checkout module. This is the main file for calculating and validating all the fields.
 * 
 * @author dreamvention
 * @link http://www.opencart.com/index.php?route=extension/extension/info&extension_id=9132
 * @package quickcheckout
 */
use Monolog\Logger;
use Monolog\Handler\BrowserConsoleHandler;
require_once modification(DIR_SYSTEM . 'library/ubench.php');
class ControllerModuleDQuickcheckout extends Controller
{
    private $settings = array();
    private $texts = array('title', 'tooltip', 'description', 'text');
    private $debug_on = true;
    private $debug_path = 'system/logs/error.txt';
    private $time = '';
    private $data = array();
    private $template = '';
    private $log = '';
    private $bench = '';
    /**
     * Index method: loads the quickcheckout module.
     * 
     * This is the main method to show all view blocks of the get_view methods
开发者ID:AndreyLikhoman,项目名称:electrotopka,代码行数:31,代码来源:d_quickcheckout.php


示例18: switch

/*      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the                */
/*      GNU General Public License for more details.                                 */
/*                                                                                   */
/*      You should have received a copy of the GNU General Public License            */
/*      along with this program.  If not, see <http://www.gnu.org/licenses/>.        */
/*                                                                                   */
/*************************************************************************************/
require_once "pre.php";
require_once "auth.php";
if (!est_autorise("acces_configuration")) {
    exit;
}
if (isset($action)) {
    switch ($action) {
        case "modifier":
            modification($serveur, $port, $username, $password, $secure, $active);
            break;
    }
}
function modification($serveur, $port, $username, $password, $secure, $active)
{
    $smtp = new Smtpconfig();
    $smtp->charger(1);
    $smtp->serveur = $serveur;
    $smtp->port = $port;
    $smtp->username = $username;
    $smtp->password = $password;
    $smtp->secure = $secure;
    if ($active == "on") {
        $smtp->active = 1;
    } else {
开发者ID:anti-conformiste,项目名称:thelia1,代码行数:31,代码来源:smtp.php


示例19: vendor

function vendor($class)
{
    $file = DIR_SYSTEM . 'vendor/' . str_replace('\\', '/', strtolower($class)) . '.php';
    if (is_file($file)) {
        include_once VQMod::modCheck(modification($file));
        return true;
    } else {
        return false;
    }
}
开发者ID:ptduc08,项目名称:mdiop,代码行数:10,代码来源:vq2-system_startup.php


示例20: modification

<?php

/*
	Project: Ka Extensions
	Author : karapuz <[email protected]>

	Version: 3 ($Revision: 27 $)
*/
require_once modification(DIR_APPLICATION . 'controller/extension/modification.php');
class KaModificationController extends ControllerExtensionModification
{
    protected function getList()
    {
        return true;
    }
    public function refresh()
    {
        $GLOBALS['ka_silent_return'] = true;
        $result = parent::refresh();
        $GLOBALS['ka_silent_return'] = false;
        return $result;
    }
}
class KaInstaller extends KaController
{
    // contstants
    //
    protected $extension_version = '0.0.0';
    protected $min_store_version = '2.0.0.0';
    protected $max_store_version = '2.0.0.9';
    protected $tables;
开发者ID:Gimalca,项目名称:shlophili,代码行数:31,代码来源:kainstaller.php



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP modify函数代码示例发布时间:2022-05-15
下一篇:
PHP model函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap