17 require_once SQ_CORE_PACKAGE_PATH.
'/page/page.inc';
59 if ($this->
attr(
'short_name') ==
'') {
62 return parent::create($link);
79 if (!parent::_createAdditional($link))
return FALSE;
82 $initial_path = strtolower($this->
attr(
'name'));
83 require_once SQ_INCLUDE_PATH.
'/general_occasional.inc';
84 $valid_paths = make_valid_web_paths(Array($initial_path));
85 $good_paths = $GLOBALS[
'SQ_SYSTEM']->am->webPathsInUse($link[
'asset'], $valid_paths, $this->
id, TRUE);
101 protected function _getName($short_name=FALSE, $contextid=NULL)
104 if ($contextid === NULL) {
105 $contextid = $GLOBALS[
'SQ_SYSTEM']->getContextId();
109 $attr = ($short_name) ?
'short_name' :
'name';
110 $values = $GLOBALS[
'SQ_SYSTEM']->am->getAttributeValuesByName($attr, $this->
type(), Array($this->
id), $contextid);
111 if (empty($values) === TRUE) {
112 return parent::_getName($short_name, $contextid);
114 return $values[$this->id];
129 if (isset($_SESSION[
'sq_local_cart_contents'][
'pending_order_id'])) {
130 $pending_order_id = $_SESSION[
'sq_local_cart_contents'][
'pending_order_id'];
131 $pending_order = $GLOBALS[
'SQ_SYSTEM']->am->getAsset($pending_order_id);
133 $pending_order->appendAuditLog($msg);
147 if (isset($_SESSION[
'sq_local_cart_contents'][
'pending_order_id'])) {
148 $pending_order = $GLOBALS[
'SQ_SYSTEM']->am->getAsset($_SESSION[
'sq_local_cart_contents'][
'pending_order_id']);
150 $pending_order->setAttrValue(
'ecom_ref_no', $ref_no);
151 $pending_order->appendAuditLog(translate(
'ecom_ref_num_recorded_before_processing'));