/** * Get line class * * @param \XLite\Model\Payment\Method $method Payment method * * @return string */ protected function getLineClass(\XLite\Model\Payment\Method $method) { $classes = array('cell'); if ($method->getAdminIconURL()) { $classes[] = 'has-icon'; } if (!$this->canSwitch($method)) { $classes[] = 'blocked-switch'; $classes[] = $this->canEnable($method) ? 'blocked-disable' : 'blocked-enable'; } elseif ($method->getWarningNote() && !$method->isEnabled()) { $classes[] = 'blocked-switch'; $classes[] = 'blocked-enable'; } return implode(' ', $classes); }
/** * {@inheritDoc} */ public function getAdminIconURL() { $this->__initializer__ && $this->__initializer__->__invoke($this, 'getAdminIconURL', array()); return parent::getAdminIconURL(); }