芝麻web文件管理V1.00
编辑当前文件:/home/pulsehostuk9/www/invoicer.pulsehost.co.uk/vendor/lavary/laravel-menu/src/Lavary/Menu/Link.php
path = $path; $this->builder = $builder; } /** * Make the anchor active. * * @return Link */ public function active() { $this->attributes['class'] = Builder::formatGroupClass(array('class' => $this->builder ? $this->builder->conf('active_class') : null), $this->attributes); $this->isActive = true; return $this; } /** * Set Anchor's href property. * * @return Link */ public function href($href) { $this->href = $href; return $this; } /** * Make the url secure. * * @return Link */ public function secure() { $this->path['secure'] = true; return $this; } /*** * Add attributes to the link. * * @param mixed * @return $this|array|mixed|null */ public function attr() { $args = func_get_args(); if (isset($args[0]) && is_array($args[0])) { $this->attributes = array_merge($this->attributes, $args[0]); return $this; } elseif (isset($args[0]) && isset($args[1])) { $this->attributes[$args[0]] = $args[1]; return $this; } elseif (isset($args[0])) { return isset($this->attributes[$args[0]]) ? $this->attributes[$args[0]] : null; } return $this->attributes; } /*** * Check for a method of the same name if the attribute doesn't exist. * * @param $prop * @return Link|string */ public function __get($prop) { if (property_exists($this, $prop)) { return $this->$prop; } return $this->attr($prop); } }