本文整理汇总了PHP中get_defined_vars函数的典型用法代码示例。如果您正苦于以下问题:PHP get_defined_vars函数的具体用法?PHP get_defined_vars怎么用?PHP get_defined_vars使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了get_defined_vars函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: cp
/**
* s2Member's PayPal Auto-Return/PDT handler (inner processing routine).
*
* @package s2Member\PayPal
* @since 110720
*
* @param array $vars Required. An array of defined variables passed by {@link s2Member\PayPal\c_ws_plugin__s2member_paypal_return_in::paypal_return()}.
* @return array|bool The original ``$paypal`` array passed in (extracted) from ``$vars``, or false when conditions do NOT apply.
*/
public static function cp($vars = array())
{
extract($vars);
foreach (array_keys(get_defined_vars()) as $__v) {
$__refs[$__v] =& ${$__v};
}
do_action("ws_plugin__s2member_during_paypal_return_before_no_return_data", get_defined_vars());
unset($__refs, $__v);
$paypal["s2member_log"][] = "No Return-Data. Customer MUST wait for Email Confirmation.";
$paypal["s2member_log"][] = "Note. This can sometimes happen when/if you are offering an Initial/Trial Period. There are times when a Payment Gateway will NOT supply s2Member with any data immediately after checkout. When/if this happens, s2Member must process the transaction via IPN only (i.e. behind-the-scene), and the Customer must wait for Email Confirmation in these cases.";
$paypal["s2member_log"][] = var_export($_REQUEST, true);
foreach (array_keys(get_defined_vars()) as $__v) {
$__refs[$__v] =& ${$__v};
}
do_action("ws_plugin__s2member_during_paypal_return_during_no_return_data", get_defined_vars());
unset($__refs, $__v);
if ($custom_success_redirection) {
$paypal["s2member_log"][] = "Redirecting Customer to a custom URL: " . $custom_success_redirection . ".";
wp_redirect($custom_success_redirection);
} else {
$paypal["s2member_log"][] = "Redirecting Customer to the Home Page (after asking Customer to check their email).";
echo c_ws_plugin__s2member_return_templates::return_template($paypal["subscr_gateway"], _x('<strong>Thank you! (you MUST check your email before proceeding).</strong><br /><br />* Note: It can take <em>(up to 15 minutes)</em> for Email Confirmation with important details. If you don\'t receive email confirmation in the next 15 minutes, please contact Support.', "s2member-front", "s2member") . ($GLOBALS["WS_PLUGIN__"]["s2member"]["o"]["paypal_sandbox"] || c_ws_plugin__s2member_utils_conds::pro_is_installed() && !empty($GLOBALS["WS_PLUGIN__"]["s2member"]["o"]["pro_" . $paypal["subscr_gateway"] . "_sandbox"]) ? '<br /><br />' . _x('<strong>** Sandbox Mode **</strong> You may NOT receive this Email in Sandbox Mode. Sandbox addresses are usually bogus (for testing).', "s2member-front", "s2member") : ''), _x("Back To Home Page", "s2member-front", "s2member"), home_url("/"));
}
foreach (array_keys(get_defined_vars()) as $__v) {
$__refs[$__v] =& ${$__v};
}
do_action("ws_plugin__s2member_during_paypal_return_after_no_return_data", get_defined_vars());
unset($__refs, $__v);
return apply_filters("c_ws_plugin__s2member_paypal_return_in_no_tx_data", $paypal, get_defined_vars());
}
开发者ID:novichkovv,项目名称:candoweightloss,代码行数:39,代码来源:paypal-return-in-no-tx-data.inc.php
示例2: indexAction
public function indexAction(Request $request, SessionInterface $session)
{
if (Util::checkUserIsLoggedIn()) {
$clientSettings = $session->get('client/settings');
$session->set('selected_product_id', SystemProduct::SYS_PRODUCT_DOCUMENTADOR);
$clientId = $session->get('client/id');
} else {
$httpHOST = Util::getHttpHost();
$clientId = $this->getRepository(UbirimiClient::class)->getByBaseURL($httpHOST, 'array', 'id');
$clientSettings = $this->getRepository(UbirimiClient::class)->getById($clientId);
$loggedInUserId = null;
$settingsDocumentador = $this->getRepository(UbirimiClient::class)->getDocumentadorSettings($clientId);
$documentatorUseAnonymous = $settingsDocumentador['anonymous_use_flag'];
$documentatorAnonymousViewUserProfiles = $settingsDocumentador['anonymous_view_user_profile_flag'];
if (!($documentatorUseAnonymous && $documentatorAnonymousViewUserProfiles)) {
Util::signOutAndRedirect();
die;
}
}
$userId = $request->get('id');
$user = $this->getRepository(UbirimiUser::class)->getById($userId);
if ($user['client_id'] != $clientId) {
return new RedirectResponse('/general-settings/bad-link-access-denied');
}
$menuSelectedCategory = 'documentator';
$activities = $this->getRepository(UbirimiUser::class)->getDocumentadorActivityStream($userId);
$sectionPageTitle = $session->get('client/settings/title_name') . ' / ' . SystemProduct::SYS_PRODUCT_DOCUMENTADOR_NAME . ' / ' . $user['first_name'] . ' ' . $user['last_name'] . ' / Activity';
return $this->render(__DIR__ . '/../../Resources/views/user/Activity.php', get_defined_vars());
}
开发者ID:spiasecki,项目名称:ubirimi,代码行数:29,代码来源:ActivityController.php
示例3: __construct
/**
* @param $id
* @param bool $disablePermissionChecking
*/
public function __construct($id = null, $disablePermissionChecking = false)
{
parent::__construct();
$this->id = $id;
$this->args = get_defined_vars();
$this->disablePermissionChecking = $disablePermissionChecking;
}
开发者ID:darryldecode,项目名称:laravelbackend,代码行数:11,代码来源:DeleteGroupCommand.php
示例4: indexAction
public function indexAction(Request $request, SessionInterface $session)
{
Util::checkUserIsLoggedInAndRedirect();
$clientId = $session->get('client/id');
$workflowId = $request->get('id');
$stepIdFrom = $request->get('step_id_from');
$stepIdTo = $request->get('step_id_to');
$projectId = $request->get('project_id');
$issueId = $request->get('issue_id');
$assignableUsers = $this->getRepository(YongoProject::class)->getUsersWithPermission($projectId, Permission::PERM_ASSIGNABLE_USER);
$projectData = $this->getRepository(YongoProject::class)->getById($projectId);
$issue = $this->getRepository(Issue::class)->getByIdSimple($issueId);
$workflowData = $this->getRepository(Workflow::class)->getDataByStepIdFromAndStepIdTo($workflowId, $stepIdFrom, $stepIdTo);
$screenId = $workflowData['screen_id'];
$allUsers = $this->getRepository(UbirimiUser::class)->getByClientId($session->get('client/id'));
$screenData = $this->getRepository(Screen::class)->getDataById($screenId);
$screenMetadata = $this->getRepository(Screen::class)->getMetaDataById($screenId);
$resolutions = $this->getRepository(IssueSettings::class)->getAllIssueSettings('resolution', $clientId);
$projectComponents = $this->getRepository(YongoProject::class)->getComponents($projectId);
$projectVersions = $this->getRepository(YongoProject::class)->getVersions($projectId);
$htmlOutput = '';
$htmlOutput .= '<table class="modal-table">';
$reporterUsers = $this->getRepository(YongoProject::class)->getUsersWithPermission($projectId, Permission::PERM_CREATE_ISSUE);
$fieldCodeNULL = null;
$fieldData = $this->getRepository(YongoProject::class)->getFieldInformation($projectData['issue_type_field_configuration_id'], $issue['type_id'], 'array');
return $this->render(__DIR__ . '/../../Resources/views/issue/TransitionDialog.php', get_defined_vars());
}
开发者ID:spiasecki,项目名称:ubirimi,代码行数:27,代码来源:TransitionDialogController.php
示例5: __construct
public function __construct()
{
echo '<div class="wrap ws-menu-page">' . "\n";
echo '<div class="ws-menu-page-toolbox">' . "\n";
c_ws_plugin__s2member_menu_pages_tb::display();
echo '</div>' . "\n";
echo '<h2>Specs / Info</h2>' . "\n";
echo '<table class="ws-menu-page-table">' . "\n";
echo '<tbody class="ws-menu-page-table-tbody">' . "\n";
echo '<tr class="ws-menu-page-table-tr">' . "\n";
echo '<td class="ws-menu-page-table-l">' . "\n";
echo '<img src="' . esc_attr($GLOBALS["WS_PLUGIN__"]["s2member"]["c"]["dir_url"]) . '/images/brand-icon.png" class="ws-menu-page-brand-icon" alt="." />' . "\n";
echo '<a href="' . esc_attr(add_query_arg("c_check_ver", urlencode(c_ws_plugin__s2member_readmes::parse_readme_value("Version")), c_ws_plugin__s2member_readmes::parse_readme_value("Plugin URI"))) . '" target="_blank"><img src="' . esc_attr($GLOBALS["WS_PLUGIN__"]["s2member"]["c"]["dir_url"]) . '/images/brand-updates.png" class="ws-menu-page-brand-updates" alt="." /></a>' . "\n";
do_action("ws_plugin__s2member_during_info_page_before_left_sections", get_defined_vars());
if (apply_filters("ws_plugin__s2member_during_info_page_during_left_sections_display_readme", true, get_defined_vars())) {
do_action("ws_plugin__s2member_during_info_page_during_left_sections_before_readme", get_defined_vars());
echo '<div class="ws-menu-page-readme">' . "\n";
do_action("ws_plugin__s2member_during_info_page_during_left_sections_during_readme", get_defined_vars());
echo c_ws_plugin__s2member_readmes::parse_readme() . "\n";
echo '</div>' . "\n";
do_action("ws_plugin__s2member_during_info_page_during_left_sections_after_readme", get_defined_vars());
}
do_action("ws_plugin__s2member_during_info_page_after_left_sections", get_defined_vars());
echo '</td>' . "\n";
echo '<td class="ws-menu-page-table-r">' . "\n";
c_ws_plugin__s2member_menu_pages_rs::display();
echo '</td>' . "\n";
echo '</tr>' . "\n";
echo '</tbody>' . "\n";
echo '</table>' . "\n";
echo '</div>' . "\n";
}
开发者ID:donwea,项目名称:nhap.org,代码行数:32,代码来源:info.inc.php
示例6: cp
/**
* s2Member's PayPal® Auto-Return/PDT handler ( inner processing routine ).
*
* @package s2Member\PayPal
* @since 110720
*
* @param array $vars Required. An array of defined variables passed by {@link s2Member\PayPal\c_ws_plugin__s2member_paypal_return_in::paypal_return()}.
* @return array|bool The original ``$paypal`` array passed in ( extracted ) from ``$vars``, or false when conditions do NOT apply.
*/
public static function cp($vars = array())
{
extract($vars);
/* Extract all vars passed in from: ``c_ws_plugin__s2member_paypal_notify_in::paypal_notify()``. */
/**/
eval('foreach(array_keys(get_defined_vars())as$__v)$__refs[$__v]=&$$__v;');
do_action("ws_plugin__s2member_during_paypal_return_before_explicit_ty_email", get_defined_vars());
unset($__refs, $__v);
/* Unset defined __refs, __v. */
/**/
$paypal["s2member_log"][] = "Customer must wait for Email Confirmation `proxy_use`: ( `ty-email` ).";
/**/
eval('foreach(array_keys(get_defined_vars())as$__v)$__refs[$__v]=&$$__v;');
do_action("ws_plugin__s2member_during_paypal_return_during_explicit_ty_email", get_defined_vars());
unset($__refs, $__v);
/* Unset defined __refs, __v. */
/**/
if ($custom_success_redirection) {
/* Using a custom success redirection URL? */
$paypal["s2member_log"][] = "Redirecting Customer to a custom URL on success: " . $custom_success_redirection . ". However, the Customer MUST wait for Email Confirmation `proxy_use`: ( `ty-email` ).";
} else {
/* Else we use the default redirection URL for this scenario, which is the Home Page. */
$paypal["s2member_log"][] = "Redirecting Customer to the Home Page. Customer must wait for Email Confirmation `proxy_use`: ( `ty-email` ).";
}
/**/
echo c_ws_plugin__s2member_return_templates::return_template($paypal["subscr_gateway"], _x('<strong>Thank you! ( you MUST check your email before proceeding ).</strong><br /><br />* Note: It can take <em>( up to 15 minutes )</em> for Email Confirmation with important details. If you don\'t receive email confirmation in the next 15 minutes, please contact Support.', "s2member-front", "s2member") . ($GLOBALS["WS_PLUGIN__"]["s2member"]["o"]["paypal_sandbox"] || c_ws_plugin__s2member_utils_conds::pro_is_installed() && !empty($GLOBALS["WS_PLUGIN__"]["s2member"]["o"]["pro_" . $paypal["subscr_gateway"] . "_sandbox"]) ? '<br /><br />' . _x('<strong>** Sandbox Mode **</strong> You may NOT receive this Email in Sandbox Mode. Sandbox addresses are usually bogus (for testing).', "s2member-front", "s2member") : ''), $custom_success_redirection ? _x("Check Your Email ( Then Click Here )", "s2member-front", "s2member") : esc_html("Back To Home Page", "s2member"), $custom_success_redirection ? $custom_success_redirection : home_url("/"));
/**/
eval('foreach(array_keys(get_defined_vars())as$__v)$__refs[$__v]=&$$__v;');
do_action("ws_plugin__s2member_during_paypal_return_after_explicit_ty_email", get_defined_vars());
unset($__refs, $__v);
/* Unset defined __refs, __v. */
/**/
return apply_filters("c_ws_plugin__s2member_paypal_return_in_proxy_ty_email", $paypal, get_defined_vars());
}
开发者ID:vinvinh315,项目名称:maintainwebsolutions.com,代码行数:43,代码来源:paypal-return-in-proxy-ty-email.inc.php
示例7: testLocalVar
public function testLocalVar()
{
$myvar = 'ok';
// define a variable in local scope
$v = CX::factory(get_defined_vars())->ns(CX::LOCAL)->getValue('myvar');
$this->assertEquals($v, 'ok');
}
开发者ID:linkeddatacenter,项目名称:BOTK-context,代码行数:7,代码来源:LocalContextTest.php
示例8: indexAction
public function indexAction(Request $request, SessionInterface $session)
{
Util::checkUserIsLoggedInAndRedirect();
$screenId = $request->get('id');
$screenMetadata = $this->getRepository(Screen::class)->getMetaDataById($screenId);
if ($screenMetadata['client_id'] != $session->get('client/id')) {
return new RedirectResponse('/general-settings/bad-link-access-denied');
}
$position = $request->get('position');
$fieldId = $request->get('field_id');
if ($fieldId && $position) {
$this->getRepository(Screen::class)->updatePositionForField($screenId, $fieldId, $position);
return new RedirectResponse('/yongo/administration/screen/configure/' . $screenId);
}
$fields = $this->getRepository(Field::class)->getByClient($session->get('client/id'));
if ($request->request->has('add_screen_field')) {
$fieldId = Util::cleanRegularInputField($request->request->get('field'));
if ($fieldId != -1) {
$currentDate = Util::getServerCurrentDateTime();
$lastOrder = $this->getRepository(Screen::class)->getLastOrderNumber($screenId);
$this->getRepository(Screen::class)->addData($screenId, $fieldId, $lastOrder + 1, $currentDate);
$this->getLogger()->addInfo('UPDATE Yongo Screen Data ' . $screenMetadata['name'], $this->getLoggerContext());
return new RedirectResponse('/yongo/administration/screen/configure/' . $screenId);
}
}
$screenData = $this->getRepository(Screen::class)->getDataById($screenId);
$menuSelectedCategory = 'issue';
$source = $request->get('source');
$projectId = null;
if ($source == 'project_screen' || $source == 'project_field') {
$projectId = $request->get('project_id');
}
$sectionPageTitle = $session->get('client/settings/title_name') . ' / ' . SystemProduct::SYS_PRODUCT_YONGO_NAME . ' / Update Screen';
return $this->render(__DIR__ . '/../../../Resources/views/administration/screen/Configure.php', get_defined_vars());
}
开发者ID:spiasecki,项目名称:ubirimi,代码行数:35,代码来源:ConfigureController.php
示例9: getVars
function getVars($filename)
{
require $filename;
$vars = get_defined_vars();
unset($vars['filename']);
return $vars;
}
开发者ID:puring0815,项目名称:OpenKore,代码行数:7,代码来源:validate.php
示例10: login
/**
* Log in as a user
*
* ## OPTIONS
* [<email>]
* : Email address to log in as.
*
* [--password=<value>]
* : Log in non-interactively with this password. Useful for automation.
*
* [--machine-token=<value>]
* : Authenticates using a machine token from your dashboard. Stores the
* token for future use.
*
* [--debug]
* : dump call information when logging in.
*/
public function login($args, $assoc_args)
{
if (!empty($args)) {
$email = array_shift($args);
}
if (isset($assoc_args['machine-token']) && $assoc_args['machine-token'] !== true) {
// Try to log in using a machine token, if provided.
$token_data = ['token' => $assoc_args['machine-token']];
$this->auth->logInViaMachineToken($token_data);
} elseif (isset($email) && !isset($assoc_args['password']) && $this->auth->tokenExistsForEmail($email)) {
// Try to log in using a machine token, if the account email was provided.
$this->auth->logInViaMachineToken(compact('email'));
} elseif (empty($args) && isset($_SERVER['TERMINUS_MACHINE_TOKEN'])) {
// Try to log in using a machine token, if it's in the $_SERVER.
$token_data = ['token' => $_SERVER['TERMINUS_MACHINE_TOKEN']];
$this->auth->logInViaMachineToken($token_data);
} elseif (isset($_SERVER['TERMINUS_USER']) && !isset($assoc_args['password']) && $this->auth->tokenExistsForEmail($_SERVER['TERMINUS_USER'])) {
// Try to log in using a machine token, if $_SERVER provides account email.
$this->auth->logInViaMachineToken(['email' => $_SERVER['TERMINUS_USER']]);
} elseif (!isset($email) && ($only_token = $this->auth->getOnlySavedToken())) {
// Try to log in using a machine token, if there is only one saved token.
$this->auth->logInViaMachineToken(['email' => $only_token['email']]);
} else {
if (isset($email) && isset($assoc_args['password'])) {
$password = $assoc_args['password'];
$this->auth->logInViaUsernameAndPassword($email, $assoc_args['password']);
} else {
$this->log()->info("Please visit the Dashboard to generate a machine token:\n{url}", ['url' => $this->auth->getMachineTokenCreationUrl()]);
exit(1);
}
}
$this->log()->debug(get_defined_vars());
$this->helpers->launch->launchSelf(['command' => 'art', 'args' => ['fist']]);
}
开发者ID:sammys,项目名称:terminus,代码行数:51,代码来源:AuthCommand.php
示例11: indexAction
public function indexAction(Request $request, SessionInterface $session)
{
$entityId = $request->get('id');
if (Util::checkUserIsLoggedIn()) {
$session->set('selected_product_id', SystemProduct::SYS_PRODUCT_DOCUMENTADOR);
$loggedInUserId = $session->get('user/id');
$page = $this->getRepository(Entity::class)->getById($entityId, $loggedInUserId);
if ($page) {
$spaceId = $page['space_id'];
}
$sectionPageTitle = $session->get('client/settings/title_name') . ' / ' . SystemProduct::SYS_PRODUCT_DOCUMENTADOR_NAME . ' / ' . $page['name'] . ' / Attachments';
} else {
$httpHOST = Util::getHttpHost();
$clientId = $this->getRepository(UbirimiClient::class)->getByBaseURL($httpHOST, 'array', 'id');
$loggedInUserId = null;
$settingsDocumentador = $this->getRepository(UbirimiClient::class)->getDocumentadorSettings($clientId);
$documentatorUseAnonymous = $settingsDocumentador['anonymous_use_flag'];
$page = $this->getRepository(Entity::class)->getById($entityId, $loggedInUserId);
if ($page) {
$spaceId = $page['space_id'];
$spaceHasAnonymousAccess = $this->getRepository(Space::class)->hasAnonymousAccess($spaceId);
if (!($documentatorUseAnonymous && $spaceHasAnonymousAccess)) {
Util::signOutAndRedirect();
die;
}
}
$sectionPageTitle = SystemProduct::SYS_PRODUCT_DOCUMENTADOR_NAME . ' / ' . $page['name'] . ' / Attachments';
}
$menuSelectedCategory = 'documentator';
if ($page) {
$attachments = $this->getRepository(EntityAttachment::class)->getByEntityId($entityId);
}
return $this->render(__DIR__ . '/../../../Resources/views/page/attachment/View.php', get_defined_vars());
}
开发者ID:spiasecki,项目名称:ubirimi,代码行数:34,代码来源:ViewController.php
示例12: login
/**
* Log in as a user
*
* ## OPTIONS
* [<email>]
* : Email address to log in as.
*
* [--password=<value>]
* : Log in non-interactively with this password. Useful for automation.
*
* [--machine-token=<value>]
* : Authenticate using an Auth0 token
*
* [--debug]
* : dump call information when logging in.
*/
public function login($args, $assoc_args)
{
// Try to login using a machine token, if provided.
if (isset($assoc_args['machine-token']) || empty($args) && isset($_SERVER['TERMINUS_MACHINE_TOKEN'])) {
$token = $_SERVER['TERMINUS_MACHINE_TOKEN'];
if (isset($assoc_args['machine-token'])) {
$token = $assoc_args['machine-token'];
}
$this->auth->logInViaMachineToken($token);
} else {
// Otherwise, do a normal email/password-based login.
if (empty($args)) {
if (isset($_SERVER['TERMINUS_USER'])) {
$email = $_SERVER['TERMINUS_USER'];
} else {
$email = Terminus::prompt('Your email address?', null);
}
} else {
$email = $args[0];
}
if (isset($assoc_args['password'])) {
$password = $assoc_args['password'];
} else {
$password = Terminus::promptSecret('Your dashboard password (input will not be shown)');
}
$this->auth->logInViaUsernameAndPassword($email, $password);
}
$this->log()->debug(get_defined_vars());
Terminus::launchSelf('art', array('fist'));
}
开发者ID:blueprintmrk,项目名称:cli,代码行数:46,代码来源:auth.php
示例13: __construct
public function __construct()
{
require '/etc/lxc-containervars.php';
foreach (get_defined_vars() as $var => $value) {
$this->data[str_replace('lxc_', '', $var)] = $value;
}
}
开发者ID:nielsvm,项目名称:lxc-containers,代码行数:7,代码来源:Variables.php
示例14: indexAction
public function indexAction(Request $request, SessionInterface $session)
{
Util::checkUserIsLoggedInAndRedirect();
$emptyPriorityName = false;
$priorityExists = false;
if ($request->request->has('new_priority')) {
$name = Util::cleanRegularInputField($request->request->get('name'));
$description = Util::cleanRegularInputField($request->request->get('description'));
$color = Util::cleanRegularInputField($request->request->get('color'));
if (empty($name)) {
$emptyPriorityName = true;
}
// check for duplication
$priority = $this->getRepository(IssueSettings::class)->getByName($session->get('client/id'), 'priority', mb_strtolower($name));
if ($priority) {
$priorityExists = true;
}
if (!$priorityExists && !$emptyPriorityName) {
$iconName = 'generic.png';
$currentDate = Util::getServerCurrentDateTime();
$this->getRepository(IssueSettings::class)->create('issue_priority', $session->get('client/id'), $name, $description, $iconName, $color, $currentDate);
$this->getLogger()->addInfo('ADD Yongo Issue Priority ' . $name, $this->getLoggerContext());
return new RedirectResponse('/yongo/administration/issue/priorities');
}
}
$menuSelectedCategory = 'issue';
$sectionPageTitle = $session->get('client/settings/title_name') . ' / ' . SystemProduct::SYS_PRODUCT_YONGO_NAME . ' / Create Issue Priority';
return $this->render(__DIR__ . '/../../../../Resources/views/administration/issue/priority/Add.php', get_defined_vars());
}
开发者ID:spiasecki,项目名称:ubirimi,代码行数:29,代码来源:AddController.php
示例15: indexAction
public function indexAction(Request $request, SessionInterface $session)
{
Util::checkUserIsLoggedInAndRedirect();
$menuSelectedCategory = 'user';
$sectionPageTitle = $session->get('client/settings/title_name') . ' / ' . SystemProduct::SYS_PRODUCT_YONGO_NAME . ' / Roles';
return $this->render(__DIR__ . '/../../../Resources/views/administration/role/List.php', get_defined_vars());
}
开发者ID:spiasecki,项目名称:ubirimi,代码行数:7,代码来源:ListController.php
示例16: sc_get_details
/**
* Handles the Shortcode for: `[s2Get /]`.
*
* @package s2Member\s2Get
* @since 3.5
*
* @attaches-to ``add_shortcode("s2Get");``
*
* @param array $attr An array of Attributes.
* @param string $content Content inside the Shortcode.
* @param string $shortcode The actual Shortcode name itself.
* @return mixed Value of the requested data, or null on failure.
*
* @todo Prevent this routine from potentially returning objects/arrays?
*/
public static function sc_get_details($attr = FALSE, $content = FALSE, $shortcode = FALSE)
{
foreach (array_keys(get_defined_vars()) as $__v) {
$__refs[$__v] =& ${$__v};
}
do_action("ws_plugin__s2member_before_sc_get_details", get_defined_vars());
unset($__refs, $__v);
$attr = c_ws_plugin__s2member_utils_strings::trim_qts_deep((array) $attr);
// Force array; trim quote entities.
$attr = shortcode_atts(array("constant" => "", "user_field" => "", "user_option" => "", "user_id" => ""), $attr);
foreach (array_keys(get_defined_vars()) as $__v) {
$__refs[$__v] =& ${$__v};
}
do_action("ws_plugin__s2member_before_sc_get_details_after_shortcode_atts", get_defined_vars());
unset($__refs, $__v);
if ($attr["constant"] && defined($attr["constant"])) {
if (!is_multisite() || !c_ws_plugin__s2member_utils_conds::is_multisite_farm() || is_main_site() || preg_match("/^S2MEMBER_/i", $attr["constant"])) {
$get = constant($attr["constant"]);
}
} else {
if ($attr["user_field"] && (is_user_logged_in() || $attr["user_id"])) {
$get = c_ws_plugin__s2member_utils_users::get_user_field($attr["user_field"], (int) $attr["user_id"]);
} else {
if ($attr["user_option"] && (is_user_logged_in() || $attr["user_id"])) {
$get = get_user_option($attr["user_option"], (int) $attr["user_id"]);
}
}
}
return apply_filters("ws_plugin__s2member_sc_get_details", isset($get) ? $get : null, get_defined_vars());
}
开发者ID:novichkovv,项目名称:candoweightloss,代码行数:45,代码来源:sc-gets-in.inc.php
示例17: cp
/**
* s2Member's PayPal® Auto-Return/PDT handler ( inner processing routine ).
*
* @package s2Member\PayPal
* @since 110720
*
* @param array $vars Required. An array of defined variables passed by {@link s2Member\PayPal\c_ws_plugin__s2member_paypal_return_in::paypal_return()}.
* @return array|bool The original ``$paypal`` array passed in ( extracted ) from ``$vars``, or false when conditions do NOT apply.
*/
public static function cp($vars = array())
{
extract($vars);
/* Extract all vars passed in from: ``c_ws_plugin__s2member_paypal_notify_in::paypal_notify()``. */
/**/
eval('foreach(array_keys(get_defined_vars())as$__v)$__refs[$__v]=&$$__v;');
do_action("ws_plugin__s2member_during_paypal_return_before_explicit_x_preview", get_defined_vars());
unset($__refs, $__v);
/* Unset defined __refs, __v. */
/**/
$paypal["s2member_log"][] = "Test preview of Return Page `proxy_use`: ( `x_preview` ).";
/**/
eval('foreach(array_keys(get_defined_vars())as$__v)$__refs[$__v]=&$$__v;');
do_action("ws_plugin__s2member_during_paypal_return_during_explicit_x_preview", get_defined_vars());
unset($__refs, $__v);
/* Unset defined __refs, __v. */
/**/
if ($custom_success_redirection) {
/* Using a custom success redirection URL? */
$paypal["s2member_log"][] = "Redirecting Customer to a custom URL on success: " . $custom_success_redirection . ". Test preview of Return Page `proxy_use`: ( `x_preview` ).";
} else {
/* Else we use the default redirection URL for this scenario, which is the Home Page. */
$paypal["s2member_log"][] = "Redirecting Customer to the Home Page. Test preview of Return Page `proxy_use`: ( `x_preview` ).";
}
/**/
echo c_ws_plugin__s2member_return_templates::return_template($paypal["subscr_gateway"], sprintf(_x('<strong>Thank you! ( this is a preview, no action necessary ).</strong><br /><br />* Note: each of your Customers are returned back to your site immediately after they complete checkout. This Return Page displays a message and instructions for the Customer. s2Member may change the message and instructions dynamically, based on what the Customer is actually doing <em>( i.e. based on the type of transaction that is taking place )</em>.<br /><br /><em>* With <a href="%s" target="_blank">s2Member Pro</a> installed, it is possible to customize this Return Page in various ways.</em>', "s2member-front", "s2member"), esc_attr(c_ws_plugin__s2member_readmes::parse_readme_value("Pro Module / Prices"))), _x("Continue ( Click Here )", "s2member-front", "s2member"), $custom_success_redirection ? $custom_success_redirection : home_url("/"));
/**/
eval('foreach(array_keys(get_defined_vars())as$__v)$__refs[$__v]=&$$__v;');
do_action("ws_plugin__s2member_during_paypal_return_after_explicit_x_preview", get_defined_vars());
unset($__refs, $__v);
/* Unset defined __refs, __v. */
/**/
return apply_filters("c_ws_plugin__s2member_paypal_return_in_proxy_x_preview", $paypal, get_defined_vars());
}
开发者ID:vinvinh315,项目名称:maintainwebsolutions.com,代码行数:43,代码来源:paypal-return-in-proxy-x-preview.inc.php
示例18: cp
/**
* s2Member's PayPal Auto-Return/PDT handler (inner processing routine).
*
* @package s2Member\PayPal
* @since 110720
*
* @param array $vars Required. An array of defined variables passed by {@link s2Member\PayPal\c_ws_plugin__s2member_paypal_return_in::paypal_return()}.
* @return array|bool The original ``$paypal`` array passed in (extracted) from ``$vars``, or false when conditions do NOT apply.
*/
public static function cp($vars = array())
{
extract($vars, EXTR_OVERWRITE | EXTR_REFS);
foreach (array_keys(get_defined_vars()) as $__v) {
$__refs[$__v] =& ${$__v};
}
do_action("ws_plugin__s2member_during_paypal_return_before_explicit_x_preview", get_defined_vars());
unset($__refs, $__v);
$paypal["s2member_log"][] = "Test preview of Return Page `proxy_use`: ( `x_preview` ).";
foreach (array_keys(get_defined_vars()) as $__v) {
$__refs[$__v] =& ${$__v};
}
do_action("ws_plugin__s2member_during_paypal_return_during_explicit_x_preview", get_defined_vars());
unset($__refs, $__v);
if ($custom_success_redirection) {
$paypal["s2member_log"][] = "Redirecting Customer to a custom URL on success: " . $custom_success_redirection . ".";
wp_redirect($custom_success_redirection);
} else {
$paypal["s2member_log"][] = "Redirecting Customer to the Home Page (after displaying preview information).";
echo c_ws_plugin__s2member_return_templates::return_template($paypal["subscr_gateway"], sprintf(_x('<strong>Thank you! (this is a preview, no action necessary).</strong><br /><br />* Note: each of your Customers are returned back to your site immediately after they complete checkout. This Return Page displays a message and instructions for the Customer. s2Member may change the message and instructions dynamically, based on what the Customer is actually doing <em>(i.e., based on the type of transaction that is taking place)</em>.<br /><br /><em>* With <a href="%s" target="_blank">s2Member Pro</a> installed, it is possible to customize this Return Page in various ways.</em>', "s2member-front", "s2member"), esc_attr(c_ws_plugin__s2member_readmes::parse_readme_value("Pro Add-on / Prices"))), _x("Continue (Click Here)", "s2member-front", "s2member"), home_url("/"));
}
foreach (array_keys(get_defined_vars()) as $__v) {
$__refs[$__v] =& ${$__v};
}
do_action("ws_plugin__s2member_during_paypal_return_after_explicit_x_preview", get_defined_vars());
unset($__refs, $__v);
return apply_filters("c_ws_plugin__s2member_paypal_return_in_proxy_x_preview", $paypal, get_defined_vars());
}
开发者ID:codeforest,项目名称:s2member,代码行数:37,代码来源:paypal-return-in-proxy-x-preview.inc.php
示例19: indexAction
public function indexAction(Request $request, SessionInterface $session)
{
Util::checkUserIsLoggedInAndRedirect();
$Id = $request->get('id');
$resolutions = $this->getRepository(IssueSettings::class)->getAllIssueSettings('resolution', $session->get('client/id'));
return $this->render(__DIR__ . '/../../../../Resources/views/administration/issue/resolution/DeleteConfirm.php', get_defined_vars());
}
开发者ID:spiasecki,项目名称:ubirimi,代码行数:7,代码来源:DeleteConfirmController.php
示例20: indexAction
public function indexAction(Request $request, SessionInterface $session)
{
Util::checkUserIsLoggedInAndRedirect();
$menuSelectedCategory = 'system';
$emptyName = false;
$eventId = $request->get('id');
$event = $this->getRepository(IssueEvent::class)->getById($eventId);
if ($event['client_id'] != $session->get('client/id')) {
return new RedirectResponse('/general-settings/bad-link-access-denied');
}
if ($request->request->has('edit_event')) {
$name = Util::cleanRegularInputField($request->request->get('name'));
$description = Util::cleanRegularInputField($request->request->get('description'));
if (empty($name)) {
$emptyName = true;
}
if (!$emptyName) {
$currentDate = Util::getServerCurrentDateTime();
$this->getRepository(IssueEvent::class)->updateById($eventId, $name, $description, $currentDate);
$this->getLogger()->addInfo('UPDATE Yongo Event ' . $name, $this->getLoggerContext());
return new RedirectResponse('/yongo/administration/events');
}
}
$sectionPageTitle = $session->get('client/settings/title_name') . ' / ' . SystemProduct::SYS_PRODUCT_YONGO_NAME . ' / Update Event';
return $this->render(__DIR__ . '/../../../Resources/views/administration/event/edit.php', get_defined_vars());
}
开发者ID:spiasecki,项目名称:ubirimi,代码行数:26,代码来源:EditController.php
注:本文中的get_defined_vars函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论