Beispiel #1
0
 /**
  * Creates a Piece_Unity_URI object based on the active flow execution or a given
  * flow ID.
  *
  * @param string $eventName
  * @param string $flowID
  * @return Piece_Unity_URI
  */
 public static function createURI($eventName, $flowID = null)
 {
     $context = Piece_Unity_Context::singleton();
     $continuation = $context->getContinuation();
     $uri = new Piece_Unity_URI(is_null($flowID) ? $context->getScriptName() : $flowID);
     $uri->setQueryVariable(self::$_flowExecutionTicketKey, is_null($flowID) ? $continuation->getActiveFlowExecutionTicket() : $continuation->getFlowExecutionTicketByFlowID($flowID));
     $uri->setQueryVariable($context->getEventNameKey(), $eventName);
     return $uri;
 }
Beispiel #2
0
 /**
  * Makes a list of non-SSLable servers.
  *
  * @throws PIECE_UNITY_ERROR_INVALID_CONFIGURATION
  */
 function _setNonSSLableServers()
 {
     $nonSSLableServers = $this->_getConfiguration('nonSSLableServers');
     if (!is_array($nonSSLableServers)) {
         Piece_Unity_Error::push(PIECE_UNITY_ERROR_INVALID_CONFIGURATION, "The value of the configuration point [ nonSSLableServers ] on the plug-in [ {$this->_name} ] should be an array.");
         return;
     }
     foreach ($nonSSLableServers as $nonSSLableServer) {
         Piece_Unity_URI::addNonSSLableServer($nonSSLableServer);
     }
 }