CC-2166: Packaging Improvements. Moved the Zend app into airtime_mvc. It is now installed to /var/www/airtime. Storage is now set to /srv/airtime/stor. Utils are now installed to /usr/lib/airtime/utils/. Added install/airtime-dircheck.php as a simple test to see if everything is install/uninstalled correctly.
This commit is contained in:
parent
514777e8d2
commit
b11cbd8159
4546 changed files with 138 additions and 51 deletions
137
airtime_mvc/library/Zend/OpenId/Extension.php
Normal file
137
airtime_mvc/library/Zend/OpenId/Extension.php
Normal file
|
@ -0,0 +1,137 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* Zend Framework
|
||||
*
|
||||
* LICENSE
|
||||
*
|
||||
* This source file is subject to the new BSD license that is bundled
|
||||
* with this package in the file LICENSE.txt.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* http://framework.zend.com/license/new-bsd
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@zend.com so we can send you a copy immediately.
|
||||
*
|
||||
* @category Zend
|
||||
* @package Zend_OpenId
|
||||
* @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
* @version $Id: Extension.php 20096 2010-01-06 02:05:09Z bkarwin $
|
||||
*/
|
||||
|
||||
/**
|
||||
* Abstract extension class for Zend_OpenId
|
||||
*
|
||||
* @category Zend
|
||||
* @package Zend_OpenId
|
||||
* @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
*/
|
||||
abstract class Zend_OpenId_Extension
|
||||
{
|
||||
|
||||
/**
|
||||
* Calls given function with given argument for all extensions
|
||||
*
|
||||
* @param mixed $extensions list of extensions or one extension
|
||||
* @param string $func function to be called
|
||||
* @param mixed &$params argument to pass to given funcion
|
||||
* @return bool
|
||||
*/
|
||||
static public function forAll($extensions, $func, &$params)
|
||||
{
|
||||
if ($extensions !== null) {
|
||||
if (is_array($extensions)) {
|
||||
foreach ($extensions as $ext) {
|
||||
if ($ext instanceof Zend_OpenId_Extension) {
|
||||
if (!$ext->$func($params)) {
|
||||
return false;
|
||||
}
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
} else if (!is_object($extensions) ||
|
||||
!($extensions instanceof Zend_OpenId_Extension) ||
|
||||
!$extensions->$func($params)) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Method to add additional data to OpenId 'checkid_immediate' or
|
||||
* 'checkid_setup' request. This method addes nothing but inherited class
|
||||
* may add additional data into request.
|
||||
*
|
||||
* @param array &$params request's var/val pairs
|
||||
* @return bool
|
||||
*/
|
||||
public function prepareRequest(&$params)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Method to parse OpenId 'checkid_immediate' or 'checkid_setup' request
|
||||
* and initialize object with passed data. This method parses nothing but
|
||||
* inherited class may override this method to do somthing.
|
||||
*
|
||||
* @param array $params request's var/val pairs
|
||||
* @return bool
|
||||
*/
|
||||
public function parseRequest($params)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Method to add additional data to OpenId 'id_res' response. This method
|
||||
* addes nothing but inherited class may add additional data into response.
|
||||
*
|
||||
* @param array &$params response's var/val pairs
|
||||
* @return bool
|
||||
*/
|
||||
public function prepareResponse(&$params)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Method to parse OpenId 'id_res' response and initialize object with
|
||||
* passed data. This method parses nothing but inherited class may override
|
||||
* this method to do somthing.
|
||||
*
|
||||
* @param array $params response's var/val pairs
|
||||
* @return bool
|
||||
*/
|
||||
public function parseResponse($params)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Method to prepare data to store it in trusted servers database.
|
||||
*
|
||||
* @param array &$data data to be stored in tusted servers database
|
||||
* @return bool
|
||||
*/
|
||||
public function getTrustData(&$data)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Method to check if data from trusted servers database is enough to
|
||||
* sutisfy request.
|
||||
*
|
||||
* @param array $data data from tusted servers database
|
||||
* @return bool
|
||||
*/
|
||||
public function checkTrustData($data)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue