コード例 #1
0
ファイル: YoutubeVideo.php プロジェクト: ponticlaro/bebop-ui
 /**
  * Instantiates this class
  * 
  */
 public function __construct(array $config = [])
 {
     parent::__construct();
     $this->config->set($config);
     $this->config->set('id', 'youtube_video');
     $this->config->set('name', 'Youtube Video');
     $this->config->set('identifier_field', 'id');
 }
コード例 #2
0
 /**
  * Instantiates this class
  * 
  */
 public function __construct(array $config = [])
 {
     parent::__construct();
     $this->config->set($config);
     $this->config->set('id', 'soundcloud_playlist');
     $this->config->set('name', 'Soundcloud Playlist');
     $this->config->set('identifier_field', 'id');
 }
コード例 #3
0
ファイル: GoogleMap.php プロジェクト: ponticlaro/bebop-ui
 /**
  * Instantiates this class
  * 
  */
 public function __construct(array $config = [])
 {
     parent::__construct();
     $this->config->set($config);
     $this->config->set('id', 'google_map');
     $this->config->set('name', 'Google Map');
     $this->config->set('identifier_field', 'url');
 }
コード例 #4
0
ファイル: Types.php プロジェクト: ponticlaro/bebop-ui
 /**
  * Instantiates this class
  * 
  */
 public function __construct(array $config = [])
 {
     parent::__construct();
     // Defaults
     $this->config->set('name', 'Post');
     $this->config->set('labels', ['identifier_field' => 'Select Post', 'missing_identifier_message' => 'You need to select a Post']);
     $this->config->set('types', ['post']);
     $this->config->set($config);
     $this->config->set('id', 'types');
     $this->config->set('identifier_field', 'id');
 }