當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Service::getServices方法代碼示例

本文整理匯總了PHP中Service::getServices方法的典型用法代碼示例。如果您正苦於以下問題:PHP Service::getServices方法的具體用法?PHP Service::getServices怎麽用?PHP Service::getServices使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Service的用法示例。


在下文中一共展示了Service::getServices方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: listServicesAction

 public function listServicesAction()
 {
     $rows = array();
     $services = Service::getServices();
     foreach ($services as $service) {
         $tmp = array();
         $tmp['id'] = $service['id'];
         $tmp['data'][] = $service['name'];
         $tmp['data'][] = $service['status'];
         $rows[] = $tmp;
     }
     $memcache = Zend_Registry::get('memcache');
     $serviceNominal = $memcache->get(Service::SERVICE_NOMINAL);
     $rows[0]['userdata']['serviceNominal'] = $serviceNominal;
     $json = Zend_Controller_Action_HelperBroker::getStaticHelper('json');
     $json->suppressExit = true;
     $json->direct(array('rows' => $rows));
 }
開發者ID:jakedorst,項目名稱:ch3-dev-preview,代碼行數:18,代碼來源:AdminServicesController.php

示例2: echo

/services/DB.php?FLAG=DELSELECT">
                    <table class="table table-striped table-bordered table-hover" id="sample_1">
                    <thead>
                    <tr>
                        <th class="table-checkbox"><input type="checkbox" class="group-checkable" data-set="#sample_1 .checkboxes"/></th>
                        <th>Service Name</th>
                        <th>Price</th>
                        <th>Service Time</th>
                        <th>Description</th>
                        <th>Date Created</th>
                        <th>Action</th>
                    </tr>
                    </thead>
                    <tbody>
                    <?php 
$results = Service::getServices();
if (count($results) > 0) {
    for ($index = 0; $index < count($results); $index++) {
        $rows = $results[$index];
        ?>
                        <tr class="<?php 
        echo ($index + 1) % 2 == 0 ? 'even' : 'odd';
        ?>
 gradeX">
                            <td> <input  name="delete[]" type="checkbox" id="delete[]" value="<?php 
        echo $rows['id'];
        ?>
" class="checkboxes" /> </td>
                            <td><?php 
        echo $general->subStr($rows['servicename'], 60);
        ?>
開發者ID:sandeepsis,項目名稱:nuwax,代碼行數:31,代碼來源:index.php

示例3: pharmacyDownload

    }
    public function pharmacyDownload($args)
    {
        $daily = 0;
        // default to full sync
        if (isset($args[0])) {
            $daily = (int) $args[0];
        }
        $ret = Pharmacy::activateDownload($daily);
        if (strlen($ret['error']) > 0) {
            // error
            echo $ret['error'];
            return false;
        }
        $filename = Pharmacy::downloadPharmacy($ret['downloadUrl'], $ret['cookieFile']);
        $counter = Pharmacy::loadPharmacy($filename);
        return true;
    }
}
set_error_handler(create_function('$errno,$errstr', 'return true;'));
$script = ScriptService::getInstance();
$methodName = trim($argv[1]);
if (method_exists($script, $methodName)) {
    echo 'Processing ' . $methodName . '... ';
    $script->{$methodName}(array_slice($argv, 2));
    Service::getServices();
    // set nominal service
    echo 'done.' . PHP_EOL;
} else {
    die("Argument {$methodName} is invalid.\n");
}
開發者ID:lucianobenetti,項目名稱:clearhealth,代碼行數:31,代碼來源:Service.php


注:本文中的Service::getServices方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。