예제 #1
0
파일: Order.php 프로젝트: kingsj/core
 /**
  * Argument convertion: <LC> --> <DRUPAL>
  *
  * @param string $path Drupal path
  * @param array  $args LC URL arguments OPTIONAL
  *
  * @return array
  */
 public static function getPortalDrupalArgs($path, array $args = array())
 {
     foreach (array('profileId' => 'profile_id', 'orderId' => 'order_id') as $var => $param) {
         ${$var} = empty($args[$param]) ? \XLite\Core\Request::getInstance()->{$param} : $args[$param];
         unset($args[$param]);
     }
     list($path, $args) = parent::getPortalDrupalArgs($path, $args);
     $path = preg_replace('/\\%/', static::getDrupalProfileId($profileId), $path, 1);
     $path = preg_replace('/\\%/', $orderId, $path, 1);
     return array($path, $args);
 }