YaWK  24.1
Yet another WebKit
YAWK\PLUGINS\TOURDATES\tourdates Class Reference

Tour Dates Plugin hands you a simple but nice, clean bootstraped & sortable Data Table. You can use it to present Tour Dates. (Or any other different kind of Events...) Perfect for a Band Website. More...

Public Member Functions

 injectLanguageTags ($lang, $language)
 Inject Language Tags. More...
 

Public Attributes

 $band
 
 $date
 
 $day
 
 $fbicon
 
 $fburl
 
 $id
 
 $month
 
 $published
 
 $time
 
 $venue
 

Detailed Description

Tour Dates Plugin hands you a simple but nice, clean bootstraped & sortable Data Table. You can use it to present Tour Dates. (Or any other different kind of Events...) Perfect for a Band Website.

Manage & render a list for any kind of events or band tourdates

Tour Dates Plugin hands you a simple but nice, clean bootstraped and sortable Data Table. You can use it to present Tour Dates or any other different kind of Events. Perfect for a Band Website or if you need to manage and display a tabluar list with fields like date, time, artist, venue & facebook event url. Data can be easily managed, added, edited, copied & deleted in the admin backend.

Class covers both, backend & frontend functionality. See Methods Summary for Details!

Author
Daniel Retzl danie.nosp@m.lret.nosp@m.zl@gm.nosp@m.ail..nosp@m.com
Version
1.0.0

Definition at line 21 of file tourdates.php.

Member Function Documentation

◆ injectLanguageTags()

YAWK\PLUGINS\TOURDATES\tourdates::injectLanguageTags (   $lang,
  $language 
)

Inject Language Tags.

Author
Daniel Retzl danie.nosp@m.lret.nosp@m.zl@gm.nosp@m.ail..nosp@m.com
Parameters
array$langlanguage data array
object$languagethe language object
Returns
null

Definition at line 51 of file tourdates.php.

52  {
53  // #####################################################################################
54  // prepare language tag injection
55  // check if lang array is set
56  if (!isset($lang) || (empty($lang) || (!is_array($lang) || (!isset($language) || (empty($language))))))
57  { // if no lang array is set
58  // check if language object is set
59  if (!isset($language))
60  { // if not, include language class
61  require_once '../system/classes/language.php';
62  // and create new language object
63  $language = new \YAWK\language();
64  }
65  // ok...
66  $language->init();
67  // convert lang object param to array
68  $lang = (array) $language->lang;
69  }
70  // all should be set ok - finally: inject additional language tags
71  return $lang = $language->inject($lang, "../system/plugins/tourdates/language/");
72  }
print $lang['PAGE_ADD_BTN']
Definition: tourdates.php:43

References $lang.

Member Data Documentation

◆ $band

YAWK\PLUGINS\TOURDATES\tourdates::$band
  • Parameters
    stringevent band name

Definition at line 34 of file tourdates.php.

◆ $date

YAWK\PLUGINS\TOURDATES\tourdates::$date
  • Parameters
    stringevent date

Definition at line 32 of file tourdates.php.

◆ $day

YAWK\PLUGINS\TOURDATES\tourdates::$day
  • Parameters
    stringevent day

Definition at line 26 of file tourdates.php.

◆ $fbicon

YAWK\PLUGINS\TOURDATES\tourdates::$fbicon
  • Parameters
    stringfacebook icon

Definition at line 38 of file tourdates.php.

◆ $fburl

YAWK\PLUGINS\TOURDATES\tourdates::$fburl
  • Parameters
    stringfacebook event url

Definition at line 40 of file tourdates.php.

◆ $id

YAWK\PLUGINS\TOURDATES\tourdates::$id
  • Parameters
    inttourdate/event ID

Definition at line 24 of file tourdates.php.

◆ $month

YAWK\PLUGINS\TOURDATES\tourdates::$month
  • Parameters
    stringevent month

Definition at line 28 of file tourdates.php.

◆ $published

YAWK\PLUGINS\TOURDATES\tourdates::$published
  • Parameters
    int0|1 1 means published, zero is not published

Definition at line 42 of file tourdates.php.

◆ $time

YAWK\PLUGINS\TOURDATES\tourdates::$time
  • Parameters
    stringevent time

Definition at line 30 of file tourdates.php.

◆ $venue

YAWK\PLUGINS\TOURDATES\tourdates::$venue
  • Parameters
    stringevent venue name

Definition at line 36 of file tourdates.php.


The documentation for this class was generated from the following file: