コード例 #1
0
ファイル: LogsController.php プロジェクト: knatorski/SMS
 public function wsshowAction()
 {
     $request = $this->getRequest();
     $id = $this->_helper->IdConvert->hexToStr($request->getParam('id', null));
     $webserviceModel = new Webservice();
     $webserviceRow = $webserviceModel->findOne($id);
     $input = $webserviceModel->hstoreToArray('in_msg', $id);
     $output = $webserviceModel->hstoreToArray('out_msg', $id);
     $this->view->row = $webserviceRow;
     $this->view->input = $input;
     $this->view->output = $output;
 }
コード例 #2
0
 protected function _fetchHead($url)
 {
     $response = Webservice::get($url);
     if (!empty($response['headers'])) {
         return $this->_parse_headers($response['headers']);
     }
     return [];
 }
コード例 #3
0
<?php

$session = new CHttpSession();
$session->open();
$pid = base64_decode($_GET["id"]);
$sprint = @$_GET["s"] != '' ? base64_decode($_GET["s"]) : 1;
yii::import("application.model.webservice");
$wp = new Webservice();
$projectName = ProjectMaster::model()->projectName($pid);
$wp->getTaskByDateForChart($pid, $sprint);
$ps = StoriesTasks::model()->workProgressPercentage($pid, $sprint);
$progress = $ps["progress"];
$pers = $ps["p"];
?>
<!doctype html>
<html lang="en">
    <head>
        <title>Scrum Board</title>
        <link rel="stylesheet" href="<?php 
echo Yii::app()->request->baseUrl;
?>
/css/default.css">
        <link rel="stylesheet" type="text/css" href="<?php 
echo Yii::app()->request->baseUrl;
?>
/css/jquery-ui-1.10.3.custom/css/ui-lightness/jquery-ui-1.10.3.custom.css" />
        <script type="text/javascript" src="<?php 
echo Yii::app()->baseUrl . '/css/jquery-ui-1.10.3.custom/js/jquery-1.9.1.js';
?>
"></script>
        <script type="text/javascript" src="<?php 
コード例 #4
0
ファイル: ParseTest.php プロジェクト: dormilich/ripedb-client
 public function testReadIncompleteErrorMessage()
 {
     $error = ['errormessages' => ['errormessage' => [['severity' => 'Error', 'text' => 'some unexpected %s has occurred for %s', 'args' => [['value' => 'issue']]]]]];
     $list = Webservice::getErrors(json_encode($error));
     $this->assertCount(1, $list);
     $this->assertEquals("Error: some unexpected %s has occurred for %s", $list[0]);
 }
コード例 #5
0
ファイル: Webmention.php プロジェクト: d6-9b/Known
 /**
  * Given a URL, returns a user icon (or false)
  * @param $url
  * @return bool|string
  */
 static function getIconFromURL($url)
 {
     if ($content = Webservice::get($url)) {
         return self::getIconFromWebsiteContent($content['content'], $url);
     }
     return false;
 }
コード例 #6
0
ファイル: index.php プロジェクト: therubberduck/norn
<?php

/**
 * Copyright (c) 2015 Thorbjørn Steen
 * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
 * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
 */
include_once 'Webservice.php';
if (isset($_POST['task'])) {
    Webservice::call();
} else {
    echo "getContent: id(optional)<br>";
    echo "getContent: title<br>";
    echo "addContent: typeid, title, content, visible<br>";
    echo "editContent: id, typeid, title, content, visible<br>";
    echo "deleteContent: id<br>";
    echo "getType: id(optional)<br>";
    echo "addType: title<br>";
    echo "editType: id, title<br>";
    echo "deleteType: id<br>";
    echo "getContentOnUser: userid, number, visible(optional)<br>";
    echo "addContentToUser: contentid, userid, number, detail<br>";
    echo "editContentOnUser: id, number, detail<br>";
    echo "removeContentFromUser: id<br>";
    echo "useContentOnUser: id<br>";
    echo "getUser: id(optional)<br>";
    echo "<br>";
    echo "Can debug by adding param: debug = 1";
}
コード例 #7
0
<?php

$session = new CHttpSession();
$session->open();
$pid = base64_decode($_GET["id"]);
yii::import("application.model.webservice");
$wp = new Webservice();
$projectName = $session["project_name"];
//Webservice::p(
//        ) ;
//($pid,'web');
?>
<!doctype html>
<html lang="en">
    <head>
        <link rel="stylesheet" href="default.css">
        <!--<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.0/jquery.min.js"></script>-->
        <!--<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.9/jquery-ui.min.js"></script>-->
        <!--<link rel="stylesheet" href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css" />-->
        <link rel="stylesheet" type="text/css" href="<?php 
echo Yii::app()->request->baseUrl;
?>
/css/jquery-ui-1.10.3.custom/css/ui-lightness/jquery-ui-1.10.3.custom.css" />
        <script type="text/javascript" src="<?php 
echo Yii::app()->baseUrl . '/css/jquery-ui-1.10.3.custom/js/jquery-1.9.1.js';
?>
"></script>
        <script type="text/javascript" src="<?php 
echo Yii::app()->baseUrl . '/css/jquery-ui-1.10.3.custom/js/jquery-ui-1.10.3.custom.js';
?>
"></script>
コード例 #8
0
 protected static function _get($url)
 {
     $response = Webservice::get($url);
     return ['code' => $response['response'], 'headers' => self::_parse_headers(isset($response['header']) ? $response['header'] : ''), 'body' => $response['content']];
 }
コード例 #9
0
ファイル: MentionClient.php プロジェクト: sintoris/Known
 protected static function _get($url)
 {
     return Webservice::get($url)['content'];
 }