当前位置: 首页>>代码示例>>PHP>>正文


PHP Link::__construct方法代码示例

本文整理汇总了PHP中Link::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP Link::__construct方法的具体用法?PHP Link::__construct怎么用?PHP Link::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Link的用法示例。


在下文中一共展示了Link::__construct方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: __construct

 /**
  * 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;
 }
开发者ID:taviroquai,项目名称:bootwiki,代码行数:13,代码来源:Image.php

示例2: __construct

 public function __construct($data)
 {
     parent::__construct($data);
     if ('' == $this->name) {
         $this->name = 'front-page-link';
     }
     $this->attributes['href'] = home_url();
 }
开发者ID:Clark-Nikdel-Powell,项目名称:Pattern-Library,代码行数:8,代码来源:front-page-link.php

示例3: __construct

 public function __construct($id, Pageable $pageable, $page)
 {
     parent::__construct($id, function () {
     });
     Args::isNumeric($page, 'page');
     $this->pageable = $pageable;
     $this->page = $page;
 }
开发者ID:picon,项目名称:picon-framework,代码行数:8,代码来源:NavigationLink.php

示例4: __construct

 /**
  * @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);
     }
 }
开发者ID:sgdoc,项目名称:sgdoce-codigo,代码行数:12,代码来源:Style.php

示例5: __construct

 public function __construct($data)
 {
     parent::__construct($data);
     if ('' == $this->name) {
         $this->name = 'postlink';
     }
     $this->attributes['href'] = get_permalink($this->post_object);
 }
开发者ID:Clark-Nikdel-Powell,项目名称:Pattern-Library,代码行数:8,代码来源:post-link.php

示例6: __construct

 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'));
 }
开发者ID:Clark-Nikdel-Powell,项目名称:Pattern-Library,代码行数:8,代码来源:posts-page-link.php

示例7: __construct

 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");
 }
开发者ID:KasaiDot,项目名称:Zero-Fansub-website,代码行数:8,代码来源:XdccLink.php

示例8: __construct

 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);
 }
开发者ID:KasaiDot,项目名称:Zero-Fansub-website,代码行数:9,代码来源:PartnerLink.php

示例9: __construct

 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);
 }
开发者ID:KasaiDot,项目名称:Zero-Fansub-website,代码行数:9,代码来源:RssLink.php

示例10: time

 /**
  * 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);
 }
开发者ID:ToddBudde,项目名称:phrails,代码行数:17,代码来源:LinkCss.php

示例11: __construct

 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);
 }
开发者ID:par-orillonsoft,项目名称:phpwebsite,代码行数:10,代码来源:ModuleLink.php

示例12: __construct

 public function __construct(Project $project)
 {
     parent::__construct();
     $this->setProject($project);
 }
开发者ID:KasaiDot,项目名称:Zero-Fansub-website,代码行数:5,代码来源:ProjectLink.php

示例13: __construct

 /**
  * @param string $href
  * @param array $meta
  */
 public function __construct($href, array $meta = [])
 {
     parent::__construct($href);
     $this->meta = $meta;
 }
开发者ID:garethwi,项目名称:yin,代码行数:9,代码来源:LinkObject.php

示例14: __construct

 public function __construct($cnn)
 {
     parent::__construct($cnn, self::$tableName, self::$tablePk, self::$tableValue0, self::$tableValue1);
 }
开发者ID:googlecode-mirror,项目名称:blksqltree,代码行数:4,代码来源:class.zonelink.php

示例15: __construct

 /**
  * 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';
 }
开发者ID:nijal,项目名称:Orion,代码行数:11,代码来源:linkoneone.php


注:本文中的Link::__construct方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。