Ejemplo n.º 1
0
 /**
  * @param string $config
  * @param string $subject
  * @param string $text
  * @param string $to
  */
 public function __construct($config, $subject, $text, $to = '')
 {
     $this->_config = Quark::Config()->Extension($config);
     $this->_dto = new QuarkDTO(new QuarkHTMLIOProcessor());
     $this->_dto->Header(self::HEADER_FROM, $this->_config->From());
     $this->Subject($subject);
     $this->Text($text);
     if (func_num_args() == 4) {
         $this->To($to);
     }
 }
Ejemplo n.º 2
0
 /**
  * @param string $config
  * @param IQuarkPaymentScenario $scenario
  */
 public function __construct($config, IQuarkPaymentScenario $scenario)
 {
     $this->_config = Quark::Config()->Extension($config);
     $this->_scenario = $scenario;
 }
Ejemplo n.º 3
0
 /**
  * @param string $name
  * @param string $id
  *
  * @return QuarkFile
  */
 private static function _storage($name, $id)
 {
     return new QuarkFile(Quark::Host() . '/' . Quark::Config()->Location(QuarkConfig::RUNTIME) . '/Session/' . $name . '/' . $name . '-' . $id . '.sid');
 }
Ejemplo n.º 4
0
 /**
  * @return IQuarkExtensionConfig|SocialNetworkConfig
  */
 private function _config()
 {
     return Quark::Config()->Extension($this->_config);
 }
Ejemplo n.º 5
0
 /**
  * @param string $config
  * @param mixed $payload
  */
 public function __construct($config, $payload = [])
 {
     $this->_config = Quark::Config()->Extension($config);
     $this->_payload = $payload;
 }
Ejemplo n.º 6
0
 /**
  * @param $config
  *
  * @return OpenGraphResource
  */
 public function App($config)
 {
     return $this->Property(self::PROPERTY_FB_APP_ID, Quark::Config()->Extension($config)->appId);
 }
Ejemplo n.º 7
0
 /**
  * @param string $config
  * @param string $message
  * @param array $phones
  */
 public function __construct($config, $message = '', $phones = [])
 {
     $this->Message($message);
     $this->Phones($phones);
     $this->_config = Quark::Config()->Extension($config);
 }