This commit is contained in:
Franck Allimant
2014-01-23 09:34:25 +01:00
1217 changed files with 183 additions and 295 deletions

0
core/lib/Thelia/Core/Application.php Executable file → Normal file
View File

0
core/lib/Thelia/Core/Bundle/TheliaBundle.php Executable file → Normal file
View File

0
core/lib/Thelia/Core/Controller/ControllerResolver.php Executable file → Normal file
View File

View File

0
core/lib/Thelia/Core/Event/ActionEvent.php Executable file → Normal file
View File

0
core/lib/Thelia/Core/Event/Cart/CartEvent.php Executable file → Normal file
View File

0
core/lib/Thelia/Core/Event/Cart/CartItemEvent.php Executable file → Normal file
View File

View File

@@ -248,5 +248,4 @@ class CustomerCreateOrUpdateEvent extends CustomerEvent
return $this->ref;
}
}

0
core/lib/Thelia/Core/Event/Customer/CustomerEvent.php Executable file → Normal file
View File

View File

0
core/lib/Thelia/Core/Event/DefaultActionEvent.php Executable file → Normal file
View File

View File

View File

View File

0
core/lib/Thelia/Core/Event/Image/ImageDeleteEvent.php Executable file → Normal file
View File

0
core/lib/Thelia/Core/Event/Image/ImageEvent.php Executable file → Normal file
View File

View File

@@ -65,6 +65,7 @@ class ModuleDeleteEvent extends ModuleEvent
public function setDeleteData($delete_data)
{
$this->delete_data = $delete_data;
return $this;
}
}
}

0
core/lib/Thelia/Core/Event/Order/OrderAddressEvent.php Executable file → Normal file
View File

0
core/lib/Thelia/Core/Event/Order/OrderEvent.php Executable file → Normal file
View File

View File

@@ -151,7 +151,6 @@ class ProductCombinationGenerationEvent extends ProductEvent
$this->ean_code = $ean_code;
return $this;
return $this;
}
public function getCombinations()

View File

@@ -129,4 +129,4 @@ class TaxEvent extends ActionEvent
{
return $this->requirements;
}
}
}

View File

@@ -129,4 +129,4 @@ class TaxRuleEvent extends ActionEvent
{
return $this->taxList;
}
}
}

0
core/lib/Thelia/Core/Event/TheliaEvents.php Executable file → Normal file
View File

0
core/lib/Thelia/Core/Event/UpdateFilePositionEvent.php Executable file → Normal file
View File

0
core/lib/Thelia/Core/Event/UpdateSeoEvent.php Executable file → Normal file
View File

View File

2
core/lib/Thelia/Core/EventListener/ViewListener.php Executable file → Normal file
View File

@@ -115,7 +115,7 @@ class ViewListener implements EventSubscriberInterface
{
$request = $this->container->get('request');
if (null === $view = $request->attributes->get('_view')) {
if (null === $request->attributes->get('_view')) {
$request->attributes->set('_view', $this->findView($request));
}

0
core/lib/Thelia/Core/Factory/ActionEventFactory.php Executable file → Normal file
View File

5
core/lib/Thelia/Core/HttpFoundation/Request.php Executable file → Normal file
View File

@@ -34,11 +34,6 @@ use Symfony\Component\HttpFoundation\Request as BaseRequest;
class Request extends BaseRequest
{
private $excludeContent = array(
'username',
'password'
);
public function getProductId()
{
return $this->get("product_id");

View File

View File

View File

View File

View File

View File

0
core/lib/Thelia/Core/Security/Role/Role.php Executable file → Normal file
View File

0
core/lib/Thelia/Core/Security/Role/RoleInterface.php Executable file → Normal file
View File

4
core/lib/Thelia/Core/Security/SecurityContext.php Executable file → Normal file
View File

@@ -104,12 +104,8 @@ class SecurityContext
// Check if user's roles matches required roles
$userRoles = $user->getRoles();
$roleFound = false;
foreach ($userRoles as $role) {
if (in_array($role, $roles)) {
$roleFound = true;
return true;
}
}

0
core/lib/Thelia/Core/Security/User/UserInterface.php Executable file → Normal file
View File

View File

View File

View File

View File

2
core/lib/Thelia/Core/Template/Element/BaseLoop.php Executable file → Normal file
View File

@@ -179,7 +179,7 @@ abstract class BaseLoop
$faultActor[] = $argument->name;
$faultDetails[] = sprintf('"%s" parameter is missing in loop type: %s, name: %s', $argument->name, $loopType, $loopName);
} else if ($value === '') {
if(!$argument->empty) {
if (!$argument->empty) {
/* check if empty */
$faultActor[] = $argument->name;
$faultDetails[] = sprintf('"%s" parameter cannot be empty in loop type: %s, name: %s', $argument->name, $loopType, $loopName);

0
core/lib/Thelia/Core/Template/Element/LoopResult.php Executable file → Normal file
View File

View File

View File

0
core/lib/Thelia/Core/Template/Loop/Accessory.php Executable file → Normal file
View File

0
core/lib/Thelia/Core/Template/Loop/Address.php Executable file → Normal file
View File

0
core/lib/Thelia/Core/Template/Loop/Admin.php Executable file → Normal file
View File

View File

@@ -58,8 +58,6 @@ class Argument
public function setValue($value)
{
$x = $value === null;
if ($value === null) {
$this->value = null;
} else {
@@ -70,7 +68,6 @@ class Argument
$this->value = (string) $value;
}
}
//$this->value = $value === null ? null : (string) $value;
}
public static function createAnyTypeArgument($name, $default=null, $mandatory=false, $empty=true)

View File

View File

4
core/lib/Thelia/Core/Template/Loop/Attribute.php Executable file → Normal file
View File

@@ -79,10 +79,6 @@ class Attribute extends BaseI18nLoop implements PropelSearchLoopInterface
{
$search = AttributeQuery::create();
$backendContext = $this->getBackend_context();
$lang = $this->getLang();
/* manage translations */
$this->configureI18nProcessing($search);

View File

View File

0
core/lib/Thelia/Core/Template/Loop/Auth.php Executable file → Normal file
View File

0
core/lib/Thelia/Core/Template/Loop/Cart.php Executable file → Normal file
View File

0
core/lib/Thelia/Core/Template/Loop/Category.php Executable file → Normal file
View File

0
core/lib/Thelia/Core/Template/Loop/CategoryPath.php Executable file → Normal file
View File

0
core/lib/Thelia/Core/Template/Loop/CategoryTree.php Executable file → Normal file
View File

0
core/lib/Thelia/Core/Template/Loop/Content.php Executable file → Normal file
View File

0
core/lib/Thelia/Core/Template/Loop/Country.php Executable file → Normal file
View File

0
core/lib/Thelia/Core/Template/Loop/Coupon.php Executable file → Normal file
View File

0
core/lib/Thelia/Core/Template/Loop/Currency.php Executable file → Normal file
View File

0
core/lib/Thelia/Core/Template/Loop/Customer.php Executable file → Normal file
View File

View File

@@ -219,9 +219,6 @@ class Document extends BaseI18nLoop implements PropelSearchLoopInterface
if (!is_null($exclude))
$search->filterById($exclude, Criteria::NOT_IN);
// Create document processing event
$event = new DocumentEvent($this->request);
return $search;
}

0
core/lib/Thelia/Core/Template/Loop/Feature.php Executable file → Normal file
View File

View File

0
core/lib/Thelia/Core/Template/Loop/FeatureValue.php Executable file → Normal file
View File

0
core/lib/Thelia/Core/Template/Loop/Feed.php Executable file → Normal file
View File

0
core/lib/Thelia/Core/Template/Loop/Folder.php Executable file → Normal file
View File

0
core/lib/Thelia/Core/Template/Loop/Image.php Executable file → Normal file
View File

0
core/lib/Thelia/Core/Template/Loop/Lang.php Executable file → Normal file
View File

4
core/lib/Thelia/Core/Template/Loop/Module.php Executable file → Normal file
View File

@@ -194,7 +194,6 @@ class Module extends BaseI18nLoop implements PropelSearchLoopInterface
$hasConfigurationInterface = false;
/* first test if module defines it's own config route */
if ($module->getActivate()) {
// Works only fo activated modules - see Thelia\Core\DependencyInjection\Compiler\RegisterRouterPass
@@ -215,8 +214,7 @@ class Module extends BaseI18nLoop implements PropelSearchLoopInterface
$hasConfigurationInterface = true;
}
}
}
else {
} else {
// Make a quick and dirty test on the module's routing.xml file
$routing = @file_get_contents($module->getAbsoluteBaseDir() . DS . "Config" . DS . "routing.xml");

0
core/lib/Thelia/Core/Template/Loop/Order.php Executable file → Normal file
View File

0
core/lib/Thelia/Core/Template/Loop/OrderAddress.php Executable file → Normal file
View File

0
core/lib/Thelia/Core/Template/Loop/OrderCoupon.php Executable file → Normal file
View File

0
core/lib/Thelia/Core/Template/Loop/OrderProduct.php Executable file → Normal file
View File

0
core/lib/Thelia/Core/Template/Loop/OrderStatus.php Executable file → Normal file
View File

0
core/lib/Thelia/Core/Template/Loop/Product.php Executable file → Normal file
View File

View File

View File

@@ -62,12 +62,8 @@ class ProductTemplate extends BaseI18nLoop implements PropelSearchLoopInterface
{
$search = TemplateQuery::create();
$backendContext = $this->getBackend_context();
$lang = $this->getLang();
/* manage translations */
$this->configureI18nProcessing($search, $columns = array('NAME'));
$this->configureI18nProcessing($search, array('NAME'));
$id = $this->getId();

0
core/lib/Thelia/Core/Template/Loop/Profile.php Executable file → Normal file
View File

0
core/lib/Thelia/Core/Template/Loop/Resource.php Executable file → Normal file
View File

0
core/lib/Thelia/Core/Template/Loop/Title.php Executable file → Normal file
View File

0
core/lib/Thelia/Core/Template/ParserContext.php Executable file → Normal file
View File

Some files were not shown because too many files have changed in this diff Show More