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


PHP dsm函数代码示例

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


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

示例1: submit

 public function submit()
 {
     check_if_post();
     $selected_data = json_decode($this->input->post('checkpost'));
     dsm($selected_data);
     echo anchor('dragdrop', 'Back');
 }
开发者ID:francomaaanz,项目名称:learningci,代码行数:7,代码来源:dragdrop.php

示例2: dispatchEmail

 function dispatchEmail($to, $sendermail, $subject, $message, $files = array())
 {
     // Debugging verbosity
     if (strpos($_SERVER['REQUEST_URI'], '-DEBUG-DISPATCHEMAIL-STARTFIN-WATCH-') !== false) {
         dsm("dispatchEmail triggered");
     }
     // State if this message is comming from an REI environment or not
     if (function_exists('version_awareness_environment_isproduction') && version_awareness_environment_isproduction() !== true) {
         $message = '<span style="color: red;">NOTICE: The following message was dispatched from the ' . version_awareness_env() . ' environment.<br/>' . 'This notice will not be prepended when the message comes from the production/staging environment</span>' . '<br/><hr/><br/>' . $message;
     }
     ini_set('sendmail_from', $sendermail);
     // email fields: to, from, subject, and so on
     $from = "BusinessUSA <" . $sendermail . ">";
     $headers = "From: {$sendermail}";
     if (!function_exists('version_awareness_environment_isproduction') || version_awareness_environment_isproduction() === true) {
         if (strpos(request_uri(), '-DEBUG-EMAIL-NOADDITIONALHEADERS-') === false) {
             $headers .= "\r\nReply-To: {$sendermail}";
             $headers .= "\r\nX-Mailer: PHP/" . phpversion();
             $headers .= "\r\nReturn-Path: {$sendermail}";
         }
     }
     // boundary
     $semi_rand = md5(time());
     $mime_boundary = "==Multipart_Boundary_x{$semi_rand}x";
     // headers for attachment
     $headers .= "\nMIME-Version: 1.0\n" . "Content-Type: multipart/mixed;\n" . " boundary=\"{$mime_boundary}\"";
     // multipart boundary
     $message = "--{$mime_boundary}\n" . "Content-Type: text/html; charset=\"iso-8859-1\"\n" . "Content-Transfer-Encoding: 7bit\n\n" . $message . "\n\n";
     // preparing attachments
     for ($i = 0; $i < count($files); $i++) {
         if (is_file($files[$i])) {
             $message .= "--{$mime_boundary}\n";
             $fp = @fopen($files[$i], "rb");
             $data = @fread($fp, filesize($files[$i]));
             @fclose($fp);
             $data = chunk_split(base64_encode($data));
             $message .= "Content-Type: application/octet-stream; name=\"" . basename($files[$i]) . "\"\n" . "Content-Description: " . basename($files[$i]) . "\n" . "Content-Disposition: attachment;\n" . " filename=\"" . basename($files[$i]) . "\"; size=" . filesize($files[$i]) . ";\n" . "Content-Transfer-Encoding: base64\n\n" . $data . "\n\n";
         }
     }
     $message .= "--{$mime_boundary}--";
     if (!function_exists('version_awareness_environment_isproduction') || version_awareness_environment_isproduction() !== true) {
         $returnpath = "-f" . $sendermail;
     }
     // Dispatch email - debugging and verbosity
     $debug['mail-arguments'] = array('to' => $to, 'subject' => $subject, 'message' => $message, 'headers' => $headers, 'returnpath' => $returnpath);
     // Dispatch email - trigger the native PHP function: mail()
     $ok = @mail($to, $subject, $message, $headers, $returnpath);
     $debug['mail-return'] = $ok;
     // Further debug and verbosity
     if (strpos($_SERVER['REQUEST_URI'], '-DEBUG-DISPATCHEMAIL-VERBOSE-') !== false) {
         dsm($debug);
     }
     if (strpos($_SERVER['REQUEST_URI'], '-DEBUG-DISPATCHEMAIL-STARTFIN-WATCH-') !== false) {
         dsm("dispatchEmail will return {$ok}");
     }
     return $debug;
 }
开发者ID:hosttor,项目名称:BusinessUSA-OpenSource,代码行数:57,代码来源:dispatchEmail.php

示例3: execute

 /**
  * Implements FacetapiQueryTypeInterface::execute().
  */
 public function execute($query)
 {
     dsm($this->facet);
     /*
        $this->adapter->addFacet($this->facet, $query);
        if ($active = $this->adapter->getActiveItems($this->facet)) {
          // Check the first value since only one is allowed.
          $filter = self::mapFacetItemToFilter(key($active), $this->facet);
          if ($filter) {
            $this->addFacetFilter($query, $this->facet['field'], $filter);
          }
        }
     */
 }
开发者ID:acrollet,项目名称:drupal_bat,代码行数:17,代码来源:BatStateSearchAPIQuery.php

示例4: get_request_token

 public function get_request_token($params = array())
 {
     $oauth_callback = variable_get('twitter_oauth_callback_url', TWITTER_OAUTH_CALLBACK_URL);
     $url = variable_get('twitter_api', TWITTER_API) . '/oauth/request_token';
     try {
         $params = array_merge($params, array('oauth_callback' => url($oauth_callback, array('absolute' => TRUE))));
         $response = $this->auth_request($url, $params);
     } catch (TwitterException $e) {
         watchdog('twitter', '!message', array('!message' => $e->__toString()), WATCHDOG_ERROR);
         return FALSE;
     }
     dsm($params);
     parse_str($response, $token);
     $this->token = new OAuthConsumer($token['oauth_token'], $token['oauth_token_secret']);
     return $token;
 }
开发者ID:ullasjos,项目名称:squirrel,代码行数:16,代码来源:twitter.lib.php

示例5: build

 /**
  * Implements \Drupal\Core\Block\BlockBase::blockBuild().
  */
 public function build()
 {
     //  case 'News':
     //      $blocks['subject'] = t('Photo\'s on News');
     //      $blocks['content'] = array(
     //        '#markup' => '<div id="News_images"> </div>',
     //        '#attached' => array(
     //          'js' => array(
     //            'data' => drupal_get_path('module', 'dd_tools') . '/js/News.js',
     //            array(
     //              'data' => array(
     //                'dd_tools' => array(
     //                  'block_items' => variable_get('News_items', 13),
     //                ),
     //              ),
     //              'type' => 'setting',
     //            ),
     //          ),
     //        ),
     //      );
     $query = db_select('node', 'n')->fields('n')->addTag('node_access')->range(0, $this->configuration['block_count']);
     $result = $query->execute();
     dpm($result);
     foreach ($result as $row) {
         dsm($row);
         var_dump($row);
     }
     $elements = array();
     if ($node_title_list = node_title_list($result)) {
         $elements['forum_list'] = $node_title_list;
         //      $elements['forum_more'] = array(
         //        '#type' => 'more_link',
         //        '#url' => Url::fromRoute('forum.index'),
         //        '#attributes' => array('title' => $this->t('Read the latest forum topics.')),
         //      );
     }
     $build = array();
     $build['elements']['#markup'] = $elements;
     $build['elements']['#markup'] = 'sdfsdafsd';
     $build['container']['#markup'] = '<div id="News_images">sdcsadvsdvsd </div>';
     //    $test = \Drupal::config('nognix.settings')->get('doh_you');
     //    $build['stuff2']['#markup'] = $this->configuration['content'];
     //    $build['#attached']['library'][] = 'dd_tools/News';
     $build['#attached']['library'][] = 'dd_tools/misc';
     return $build;
 }
开发者ID:batigolix,项目名称:doesdesign8,代码行数:49,代码来源:Dd_toolsNews.php

示例6: list_build_row

 /**
  * Build a row based on the item.
  *
  * By default all of the rows are placed into a table by the render
  * method, so this is building up a row suitable for theme('table').
  * This doesn't have to be true if you override both.
  */
 function list_build_row($item, &$form_state, $operations)
 {
     // Set up sorting
     $name = $item->{$this->plugin['export']['key']};
     $schema = ctools_export_get_schema($this->plugin['schema']);
     dsm($item);
     $instance = is_object($item->data) ? $item->data : (object) unserialize($item->data);
     $visibility = array(t('Show on every page except the listed pages.'), t('Show on only the listed pages.'));
     $pages = $instance->pages != substr($instance->pages, 0, 40) ? substr($instance->pages, 0, 40) . '...' : substr($instance->pages, 0, 40);
     // Note: $item->{$schema['export']['export type string']} should have already been set up by export.inc so
     // we can use it safely.
     switch ($form_state['values']['order']) {
         case 'disabled':
             $this->sorts[$name] = empty($item->disabled) . $name;
             break;
         case 'title':
             $this->sorts[$name] = $item->{$this->plugin['export']['admin_title']};
             break;
         case 'name':
             $this->sorts[$name] = $name;
             break;
         case 'storage':
             $this->sorts[$name] = $item->{$schema['export']['export type string']} . $name;
             break;
     }
     $this->rows[$name]['data'] = array();
     $this->rows[$name]['class'] = !empty($item->disabled) ? array('ctools-export-ui-disabled') : array('ctools-export-ui-enabled');
     // If we have an admin title, make it the first row.
     if (!empty($this->plugin['export']['admin_title'])) {
         $this->rows[$name]['data'][] = array('data' => check_plain($item->{$this->plugin['export']['admin_title']}), 'class' => array('ctools-export-ui-title'));
     }
     $this->rows[$name]['data'][] = array('data' => check_plain($name), 'class' => array('ctools-export-ui-name'));
     $this->rows[$name]['data'][] = array('data' => check_plain($item->{$schema['export']['export type string']}), 'class' => array('ctools-export-ui-storage'));
     $ops = theme('links__ctools_dropbutton', array('links' => $operations, 'attributes' => array('class' => array('links', 'inline'))));
     // Show element, style, visibility and pages.
     $this->rows[$name]['data'][] = array('data' => check_plain($instance->element));
     $this->rows[$name]['data'][] = array('data' => check_plain($instance->style));
     $this->rows[$name]['data'][] = array('data' => $visibility[$instance->visibility]);
     $this->rows[$name]['data'][] = array('data' => check_plain($pages));
     $this->rows[$name]['data'][] = array('data' => $ops, 'class' => array('ctools-export-ui-operations'));
     // Add an automatic mouseover of the description if one exists.
     if (!empty($this->plugin['export']['admin_description'])) {
         $this->rows[$name]['title'] = $item->{$this->plugin['export']['admin_description']};
     }
 }
开发者ID:newswim,项目名称:dkan-drops-7,代码行数:52,代码来源:beautytips_instance_export_ui.class.php

示例7: setEventSearchString

function setEventSearchString($searchFilters)
{
    $queryString = "";
    $keyword = htmlspecialchars($searchFilters['keyword']);
    $applySubmit = htmlspecialchars($searchFilters['applySubmit']);
    if ($keyword && !$applySubmit) {
        $queryString = "(bundle:event AND spell:" . solrEscapeQuery($keyword);
    } else {
        $field_event_type = $searchFilters['field_event_type'];
        $field_program_industry = $searchFilters['field_program_industry'];
        $field_program_org_tht_owns_prog = $searchFilters['field_program_org_tht_owns_prog'];
        $field_event_state = $searchFilters['field_event_state'];
        $queryString = "(bundle:event";
        //All the following variables come from the extract call
        foreach ($field_event_type as $index => $event_type) {
            $queryString .= " OR ts_field_event_type:" . solrEscapeQuery(htmlspecialchars($event_type));
        }
        foreach ($field_program_industry as $index => $industry) {
            $queryString .= " OR ts_field_program_industry:" . solrEscapeQuery(htmlspecialchars($industry));
        }
        foreach ($field_program_org_tht_owns_prog as $index => $organization) {
            $queryString .= " OR ts_field_program_org_tht_owns_prog:" . solrEscapeQuery(htmlspecialchars($organization));
        }
        foreach ($field_event_state as $index => $state) {
            $queryString .= " OR ts_field_event_state:" . solrEscapeQuery(htmlspecialchars($state));
        }
        $startDate = htmlspecialchars($searchFilters['startDate']);
        $endDate = htmlspecialchars($searchFilters['endDate']);
        if (!$startDate) {
            $queryString .= ' AND ds_field_event_date:[NOW TO *]';
        } else {
            $startDate = new DateTime($startDate);
            $endDate = new DateTime($endDate);
            if (!$endDate) {
                $endDate = $startDate->modify('+1 day');
            }
            $startDate = $startDate->format('Y-m-d') . 'T00:00:01Z';
            $endDate = $endDate->format('Y-m-d') . 'T23:59:59Z';
            $queryString .= " AND ds_field_event_date:[{$startDate} TO {$endDate}]";
        }
    }
    $queryString .= ")";
    dsm($queryString);
    return $queryString;
}
开发者ID:hosttor,项目名称:BusinessUSA-OpenSource,代码行数:45,代码来源:events_functions.php

示例8: metroblocks_form_alter

function metroblocks_form_alter(&$form, &$form_state, $form_id)
{
    dsm($form);
    switch ($form_id) {
        case 'system_theme_settings':
            $form['theme_settings_general'] = array('#type' => 'vertical_tabs');
            $form_elements = element_children($form);
            foreach ($form_elements as $element) {
                if (isset($form[$element]['#type']) && $form[$element]['#type'] == 'fieldset' && !isset($form['#element']['#group'])) {
                    $form[$element]['#group'] = 'theme_settings_general';
                    $form[$element]['#attached'] = array('js' => array(drupal_get_path('module', 'themesettings_verticaltabs') . '/themesettings_verticaltabs.js'));
                }
            }
            // extra submit callback
            array_unshift($form['#submit'], '_themesettings_verticaltabs_submit');
            // remove unnecessary CSS class, fixes whitespace problem
            unset($form['logo']['#attributes']['class']);
    }
}
开发者ID:Alexabr23,项目名称:bomberos120,代码行数:19,代码来源:theme-settings.php

示例9: associateWizardTagsWithNodesInDrupalDatabaseForAllWizards

/** array associateWizardTagsWithNodesInDrupalDatabase()
 *
 * Triggers associateWizardTagsWithNodesInDrupalDatabase() for each wizard in BusinessUSA
 *
 * Returns an associative array of wizard-excelsheet-paths (parameter given to associateWizardTagsWithNodesInDrupalDatabase()) as the key, and 
 * the return of associateWizardTagsWithNodesInDrupalDatabase() as the values.
 */
function associateWizardTagsWithNodesInDrupalDatabaseForAllWizards($returnSummaryOnly = false)
{
    // Dont let this process run if it has already ran within the past 12 hours
    $secondsIn12Hours = 43200;
    if (time() < variable_get('associateWizardTagsWithNodes_lastRun', 0) + $secondsIn12Hours) {
        error_log(__FUNCTION__ . " will not execute its functionality, it has ran too recently, Coder Bookmark: CB-NOGJX2V-BC.");
        return;
    }
    // Note that this process has "last run" at this time
    variable_set('associateWizardTagsWithNodes_lastRun', time());
    // The return buffer, this array will be what the function returns when it terminates
    $toReturn = array();
    //$node_type = 'wizard_result_reference_for_solr';
    //$mySqlLink = connectMySQL();
    $result = db_query("delete FROM node WHERE type='wizard_result_reference_for_solr'");
    //mysql_query($result, $mySqlLink);
    // Select the nodes that we want to delete.
    /*$result = db_select('node', 'n')
            ->fields('n', array('nid'))
            ->condition('type', $node_type, '=')
            ->execute();
    
        foreach ($result as $record) {
            node_delete($record->nid);
    
        }*/
    // Build a list of all WizardResult-Excel files used, across all wizards in BusinessUSA
    $busaWizardResultExcels = array('sites/all/pages/access-financing/wizard-results.xls', 'sites/all/pages/begin-exporting/wizard-results.xls', 'sites/all/pages/disaster-assistance/wizard-results.xls', 'sites/all/pages/expand-exporting/wizard-results.xls', 'sites/all/pages/find-opportunities/wizard-results.xls', 'sites/all/pages/healthcare/wizard-results.xls', 'sites/all/pages/jobcenter-wizard/wizard-results.xls', 'sites/all/pages/rural-exporting/wizard-results.xls', 'sites/all/pages/select-usa/wizard-results.xls', 'sites/all/pages/start-a-business/wizard-results.xls', 'sites/all/pages/taxes-and-credits/wizard-results.xls', 'sites/all/pages/veterans/wizard-results.xls');
    // For each Swimlane-Page node (foreach wizard)
    foreach ($busaWizardResultExcels as $busaWizardResultExcel) {
        if (file_exists($busaWizardResultExcel)) {
            dsm($busaWizardResultExcel);
            $report = associateWizardTagsWithNodesInDrupalDatabase($busaWizardResultExcel, $returnSummaryOnly);
            $toReturn[$busaWizardResultExcel] = $report;
        }
    }
    // Return $toReturn, the return buffer
    return $toReturn;
}
开发者ID:hosttor,项目名称:BusinessUSA-OpenSource,代码行数:46,代码来源:Wizards-IndexWizardResultsIntoSolr.php

示例10: test27

/**
 * Debugging functions are discouraged.
 */
function test27()
{
    $var = array(1, 2, 3);
    dsm($var);
    dpm($var);
}
开发者ID:GitError404,项目名称:favrskov.dk,代码行数:9,代码来源:bad.php

示例11: header

        header('Content-Type: text/html');
        // Spit out the HTML retrieved by views_embed_view()
        print $viewHTML;
        // Terminate this PHP thread
        exit;
    }
}
?>

<div class="not-admin-only">
    <b>Sign in as a administrator to view usage and dev-notes.</b>
</div>

<div class="admin-only">
    <?php 
dsm('Note: This functionality is stored in the file: ' . __FILE__);
?>
    This script is used to get a rendered View's HTML and return it in an AJAX session
    <br/>
    Note that this page returns data from the views_embed_view() function.
    You can review the Drupal documentation for this function from:
    <a href="https://api.drupal.org/api/views/views.module/function/views_embed_view/7">
        views_embed_view()
    </a>
    <br/>
    Only when the $_GET[view] and $_GET[display] parameters are given will this script will return/execute its functionality
    Refer to <a href="/sys/ajax/views_embed_view?view=closes_resource_center_retheme&display=resource_centers&param1=38.925872&param2=-77.389841&param3=100">
    this example</a>.<br/>
    <br/>
    You can easily pull data from the above example with jQuery/AJAX by executing:<br/>
    <textarea style="width: 100%; min-height: 120px;">
开发者ID:hosttor,项目名称:BusinessUSA-OpenSource,代码行数:31,代码来源:views_embed_view.page.php

示例12: php_form_alter

/**
 * Implements hook_form_alter().
 *
 * TODO (msmith): Add documentation.
 */
function php_form_alter(&$form, &$form_state, $form_id)
{
    dsm($form_id);
    return $form;
}
开发者ID:badri,项目名称:dot-emacs-dot-d,代码行数:10,代码来源:php.php

示例13: request

 /**
  * Submits an API request through the iATS SOAP API Toolkit.
  *
  * @param $request
  *   The request object or array containing the parameters of the requested services.
  *
  * @return
  *   The response object from the API with properties pertinent to the requested
  *     services.
  */
 function request($credentials, $payment)
 {
     // Attempt the SOAP request and log the exception on failure.
     $method = $this->method['method'];
     if (empty($method)) {
         dsm($this->method);
         return FALSE;
     }
     // do some massaging of parameters for badly behaving iATS methods ($method is now the iATS method, not our internal key)
     switch ($method) {
         case 'CreateCreditCardCustomerCode':
         case 'UpdateCreditCardCustomerCode':
             $dummy_date = date('c', time());
             // now
             foreach (array('beginDate', 'endDate') as $key) {
                 if (empty($request_params[$key])) {
                     $request_params[$key] = $dummy_date;
                 }
             }
             break;
     }
     $message = $this->method['message'];
     $response = $this->method['response'];
     // always log requests to my own table, start by making a copy of the original request
     // note: this is different from the drupal watchdog logging that only happens if userframework logging and debug are enabled
     if (!empty($payment['invoiceNum'])) {
         $logged_request = $payment;
         // mask the cc numbers
         $this->mask($logged_request);
         // log: ip, invoiceNum, , cc, total, date
         // dpm($logged_request);
         $cc = isset($logged_request['creditCardNum']) ? $logged_request['creditCardNum'] : (isset($logged_request['ccNum']) ? $logged_request['ccNum'] : '');
         $ip = $logged_request['customerIPAddress'];
         $query_params = array(1 => array($logged_request['invoiceNum'], 'String'), 2 => array($ip, 'String'), 3 => array(substr($cc, -4), 'String'), 4 => array('', 'String'), 5 => array($logged_request['total'], 'String'));
         CRM_Core_DAO::executeQuery("INSERT INTO civicrm_iats_request_log\n        (invoice_num, ip, cc, customer_code, total, request_datetime) VALUES (%1, %2, %3, %4, %5, NOW())", $query_params);
         if (!$this->is_ipv4($ip)) {
             $payment['customerIPAddress'] = substr($ip, 0, 30);
         }
         // save the invoiceNum so I can log it for the response
         $this->invoiceNum = $logged_request['invoiceNum'];
     }
     // the agent user and password only get put in here so they don't end up in a log above
     try {
         /* until iATS fixes it's box verify, we need to have trace on to make the hack below work */
         $soapClient = new SoapClient($this->_wsdl_url, array('trace' => 1, 'soap_version' => SOAP_1_2));
         /* build the request manually as per the iATS docs */
         $xml = '<' . $message . ' xmlns="' . $this->_wsdl_url_ns . '">';
         $request = array_merge($this->request, (array) $credentials, (array) $payment);
         // Pass CiviCRM tag + version to iATS
         $request['comment'] = 'CiviCRM: ' . CRM_Utils_System::version() . ' + ' . 'iATS Extension: ' . $this->iats_extension_version();
         $tags = !empty($this->_tag_order) ? $this->_tag_order : array_keys($request);
         foreach ($tags as $k) {
             if (isset($request[$k])) {
                 $xml .= '<' . $k . '>' . $request[$k] . '</' . $k . '>';
             }
         }
         $xml .= '</' . $message . '>';
         if (!empty($this->options['log'])) {
             watchdog('civicrm_iatspayments_com', 'Method info: !method', array('!method' => $method), WATCHDOG_NOTICE);
             watchdog('civicrm_iatspayments_com', 'XML: !xml', array('!xml' => $xml), WATCHDOG_NOTICE);
         }
         $soapRequest = new SoapVar($xml, XSD_ANYXML);
         if (!empty($this->options['log'])) {
             watchdog('civicrm_iatspayments_com', 'Request !request', array('!request' => print_r($soapRequest, TRUE)), WATCHDOG_NOTICE);
         }
         $soapResponse = $soapClient->{$method}($soapRequest);
         if (!empty($this->options['log']) && !empty($this->options['debug'])) {
             $request_log = "\n HEADER:\n";
             $request_log .= $soapClient->__getLastRequestHeaders();
             $request_log .= "\n BODY:\n";
             $request_log .= $soapClient->__getLastRequest();
             $request_log .= "\n BODYEND:\n";
             watchdog('civicrm_iatspayments_com', 'Request: !request', array('!request' => '<pre>' . $request_log . '</pre>'), WATCHDOG_NOTICE);
             $response_log = "\n HEADER:\n";
             $response_log .= $soapClient->__getLastResponseHeaders();
             $response_log .= "\n BODY:\n";
             $response_log .= $soapClient->__getLastResponse();
             $response_log .= "\n BODYEND:\n";
             watchdog('civicrm_iatspayments_com', 'Response: !response', array('!response' => '<pre>' . $response_log . '</pre>'), WATCHDOG_NOTICE);
         }
     } catch (SoapFault $exception) {
         if (!empty($this->options['log'])) {
             watchdog('civicrm_iatspayments_com', 'SoapFault: !exception', array('!exception' => '<pre>' . print_r($exception, TRUE) . '</pre>'), WATCHDOG_ERROR);
             $response_log = "\n HEADER:\n";
             $response_log .= $soapClient->__getLastResponseHeaders();
             $response_log .= "\n BODY:\n";
             $response_log .= $soapClient->__getLastResponse();
             $response_log .= "\n BODYEND:\n";
             watchdog('civicrm_iatspayments_com', 'Raw Response: !response', array('!response' => '<pre>' . $response_log . '</pre>'), WATCHDOG_NOTICE);
         }
//.........这里部分代码省略.........
开发者ID:colemanw,项目名称:com.iatspayments.civicrm,代码行数:101,代码来源:iATSService.php

示例14: dsm

print $user_dat->field_fornavn['und'][0]['value'] . " " . $user_dat->field_efternavn['und'][0]['value'];
}



                            ?>
                               </div>

                               <?php print $content['mc1']; ?>
                         </span>

                         <span class="form_box right">
                         	    <label>PASSASJER</label>
                         	    <div class="input2boxrickshaw">
                         	    <?php
                                               	  dsm($node);

$nodepassager1 = node_load($node->field_tur_beboer['und'][0]['target_id']);
$nodepassager2 = node_load($node->field_tur_beboer['und'][1]['target_id']);
if(empty($nodepassager2))
{
print $nodepassager1->title;
}
else
{
print $nodepassager1->title;
print "<br />";
print $nodepassager2->title;
}
                          //	 print $node->field_tur_beboer(0)("1");
                        // 	 print $passagers->[1]['target_id'];
开发者ID:padmanabhan-developer,项目名称:Norway-GO,代码行数:31,代码来源:cua-visture.tpl.php

示例15: submitForm

 public function submitForm(array &$form, array &$form_state)
 {
     //$form_object = $this->getFormObject($form_state);
     //$form_object->submitForm($form, $form_state);
     dsm('Running my own custom ->submitForm');
 }
开发者ID:kazunoko85,项目名称:drupal8,代码行数:6,代码来源:SaveLayout.php


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