/** * Returns class instance * * @return SNIPPETS_BOL_Service */ public static function getInstance() { if (null === self::$classInstance) { self::$classInstance = new self(); } return self::$classInstance; }
public function getSnippets() { return SNIPPETS_BOL_Service::getInstance()->getSnippets($this->entityType, $this->entityId, $this->value, true); }
public function getSnippets() { $snippets = SNIPPETS_BOL_Service::getInstance()->getSnippets($this->entityType, $this->entityId, $this->settings, false); return empty($snippets["active"]) ? array() : $snippets["active"]; }