Пример #1
0
 /**
  *
  */
 public function init()
 {
     parent::init();
     if (!$this->value) {
         $this->value = function ($width, $height) {
             /** @noinspection SpellCheckingInspection */
             return sprintf($this->isGray ? 'http://placebear.com/g/%d/%d' : 'http://placebear.com/%d/%d', $width, $height);
         };
     }
 }
Пример #2
0
 /**
  *
  */
 public function init()
 {
     parent::init();
     if (!$this->value) {
         $this->value = function ($width, $height) {
             /** @noinspection SpellCheckingInspection */
             return sprintf('http://lorempixel.com/%d/%d', $width, $height);
         };
     }
 }
Пример #3
0
 /**
  *
  */
 public function init()
 {
     parent::init();
     if (!$this->value) {
         $this->value = function ($width, $height) {
             /** @noinspection SpellCheckingInspection */
             return sprintf('https://placehold.it/%dx%d', $width, $height);
         };
     }
 }