예제 #1
0
 /**
  * Return params list to use for search
  *
  * @return \XLite\Core\CommonCell
  */
 protected function getSearchCondition()
 {
     $cnd = parent::getSearchCondition();
     $cnd->{\XLite\Model\Repo\Payment\Method::P_MODULE_ENABLED} = true;
     $cnd->{\XLite\Model\Repo\Payment\Method::P_ADDED} = true;
     $cnd->{\XLite\Model\Repo\Payment\Method::P_ORDERBY} = array('m.class, translations.name', 'asc');
     return $cnd;
 }
예제 #2
0
파일: AProduct.php 프로젝트: kingsj/core
 /**
  * Return params list to use for search
  *
  * @return \XLite\Core\CommonCell
  */
 protected function getSearchCondition()
 {
     $result = parent::getSearchCondition();
     // We initialize structure to define order (field and sort direction) in search query.
     $result->{\XLite\Model\Repo\Product::P_ORDER_BY} = $this->getOrderBy();
     return $result;
 }
예제 #3
0
 /**
  * Returns a list of CSS classes (separated with a space character) to be attached to the items list
  *
  * @return string
  */
 public function getListCSSClasses()
 {
     return parent::getListCSSClasses() . ' items-list-pin-codes';
 }
예제 #4
0
 /**
  * Get widget templates directory
  *
  * @return string
  */
 protected function getDir()
 {
     return parent::getDir() . '/module';
 }
예제 #5
0
 /**
  * Returns a list of CSS classes (separated with a space character) to be attached to the items list
  *
  * @return string
  */
 public function getListCSSClasses()
 {
     return parent::getListCSSClasses() . ' featuredProducts';
 }
예제 #6
0
파일: AModel.php 프로젝트: kewaunited/xcart
 /**
  * Return internal list name
  *
  * @return string
  */
 protected function getListName()
 {
     return parent::getListName() . '.' . implode('.', $this->getListNameSuffixes());
 }
예제 #7
0
 /**
  * Return name of the base widgets list
  *
  * @return string
  */
 protected function getListName()
 {
     return parent::getListName() . '.newsMessages.customer';
 }
예제 #8
0
 /**
  * Get container class
  *
  * @return string
  */
 protected function getContainerClass()
 {
     return parent::getContainerClass() . ' reviews';
 }
예제 #9
0
파일: AProfile.php 프로젝트: kingsj/core
 /**
  * Return params list to use for search
  *
  * @return \XLite\Core\CommonCell
  */
 protected function getSearchCondition()
 {
     $result = parent::getSearchCondition();
     $result->{\XLite\Model\Repo\Profile::SEARCH_ORDER_ID} = 0;
     return $result;
 }
예제 #10
0
파일: AOrder.php 프로젝트: kingsj/core
 /**
  * Return params list to use for search
  *
  * @return \XLite\Core\CommonCell
  */
 protected function getSearchCondition()
 {
     $result = parent::getSearchCondition();
     $result->{\XLite\Model\Repo\Order::P_ORDER_BY} = array($this->getSortBy(), $this->getSortOrder());
     return $result;
 }