Exemple #1
0
 /**
  * Creates a new image
  * @param string $src
  * @param boolean $rel_path
  * @param string $alt
  */
 public function __construct($src = '#', $rel_path = true, $alt = '')
 {
     parent::__construct();
     $this->src = $src;
     $this->rel_path = $rel_path;
     $this->alt = $alt;
 }
 public function __construct($data)
 {
     parent::__construct($data);
     if ('' == $this->name) {
         $this->name = 'front-page-link';
     }
     $this->attributes['href'] = home_url();
 }
 public function __construct($id, Pageable $pageable, $page)
 {
     parent::__construct($id, function () {
     });
     Args::isNumeric($page, 'page');
     $this->pageable = $pageable;
     $this->page = $page;
 }
Exemple #4
0
 /**
  * @param string $href
  * @param string $media
  * */
 public function __construct($href, $media = NULL)
 {
     parent::__construct($href, 'stylesheet');
     $this->attr('type', 'text/css');
     if (NULL != $media) {
         $this->attr('media', $media);
     }
 }
 public function __construct($data)
 {
     parent::__construct($data);
     if ('' == $this->name) {
         $this->name = 'postlink';
     }
     $this->attributes['href'] = get_permalink($this->post_object);
 }
 public function __construct($data)
 {
     parent::__construct($data);
     if ('' == $this->name) {
         $this->name = 'posts-page-link';
     }
     $this->attributes['href'] = get_permalink(get_option('page_for_posts'));
 }
 public function __construct()
 {
     parent::__construct(null, new Image("images/icones/xdcc.png"));
     $url = new Url('index.php');
     $url->setQueryVar("page", "xdcc");
     parent::setUrl($url);
     $this->setClass("xdccLink");
 }
 public function __construct(Partner $partner, $content = null)
 {
     parent::__construct($partner->getWebsiteUrl(), $content);
     $this->partner = $partner;
     if ($content == null) {
         $this->setContent($partner->getName());
     }
     $this->openNewWindow(true);
 }
 public function __construct(Url $rssUrl, $content = null)
 {
     parent::__construct($rssUrl);
     $rssImage = new Image('images/icones/rss.png', 'Flux RSS');
     $rssImage->setClass('rss');
     $this->setContent($rssImage);
     $this->setMetaData('type', 'application/rss+xml');
     $this->openNewWindow(true);
 }
Exemple #10
0
 /**
  * Return a linkCss object
  *
  * @param string $path 
  * @param string $options 
  * @return LinkCss
  * @author Justin Palmer
  */
 function __construct($path, $options = '')
 {
     $path = $path . '.css';
     $app_path = Registry::get('pr-install-path');
     if ($app_path != null) {
         $path = $app_path . 'public/stylesheets/' . $path . '?' . time();
     }
     parent::__construct($path, $options);
 }
 public function __construct($label, $module_path, array $variables = null, $secure = false)
 {
     parent::__construct($label);
     //$this->addIgnoreVariables('secure', 'variables', 'module_path');
     $this->setModulePath($module_path);
     if (!empty($variables)) {
         $this->addVariables($variables);
     }
     $this->setSecure($secure);
 }
 public function __construct(Project $project)
 {
     parent::__construct();
     $this->setProject($project);
 }
Exemple #13
0
 /**
  * @param string $href
  * @param array $meta
  */
 public function __construct($href, array $meta = [])
 {
     parent::__construct($href);
     $this->meta = $meta;
 }
 public function __construct($cnn)
 {
     parent::__construct($cnn, self::$tableName, self::$tablePk, self::$tableValue0, self::$tableValue1);
 }
Exemple #15
0
 /**
  * Link One-One model field
  * @param string $bind
  * @param string $label
  * @param boolean $primary
  */
 public function __construct($bind = 'category', $label = 'Category', $model = 'CategoryHandler', $rightfield = 'id', $rightfieldlabel = 'name', $required = true, $primary = false)
 {
     parent::__construct($bind, $label, $model, $rightfield, $rightfieldlabel, $required, $primary);
     $this->type = 'link-one-one';
 }
Exemple #16
0
 /**
  * Link One-One model field
  * @param string $bind
  * @param string $label
  * @param boolean $primary
  */
 public function __construct($bind, $label, $model, $rightfield = 'id')
 {
     parent::__construct($bind, $label, $model, $rightfield, $rightfield, false, false);
     $this->type = 'link-one-many';
 }
Exemple #17
0
 /**
  * Link constructor.
  */
 public function __construct($url, $label = '<em class="fa fa-search-plus"></em>', array $configurableOptions = [])
 {
     $configurableOptions['url'] = $url;
     $configurableOptions['label'] = $label;
     parent::__construct($configurableOptions);
 }
Exemple #18
0
 public function __construct($url, $text)
 {
     parent::__construct($url, $text);
 }
Exemple #19
0
 public function __construct($phref, $ptitle = NULL, $pfacetGroup = NULL, $pactiveFacet = FALSE)
 {
     parent::__construct($phref, Link::OPDS_PAGING_TYPE, "http://opds-spec.org/facet", $ptitle, $pfacetGroup, $pactiveFacet);
     if (!is_null(GetUrlParam(DB))) {
         $this->href = addURLParameter($this->href, DB, GetUrlParam(DB));
     }
     $this->href = $_SERVER["SCRIPT_NAME"] . $this->href;
 }
Exemple #20
0
 /**
  * Open a file.
  *
  * @access  public
  * @param   string  $streamName    Stream name.
  * @param   string  $mode          Open mode, see the parent::MODE_* constants.
  * @param   string  $context       Context ID (please, see the
  *                                 \Hoa\Stream\Context class).
  * @param   bool    $wait          Differ opening or not.
  * @return  void
  */
 public function __construct($streamName, $mode = parent::MODE_READ, $context = null, $wait = false)
 {
     parent::__construct($streamName, $mode, $context, $wait);
     return;
 }
Exemple #21
0
 public function __construct()
 {
     parent::__construct('register_form');
 }
Exemple #22
0
 public function __construct()
 {
     parent::__construct();
 }