PHP 클래스 Nexcessnet_Turpentine_Model_Varnish_Configurator_Version4

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
상속: extends Nexcessnet_Turpentine_Model_Varnish_Configurator_Abstract
파일 보기 프로젝트 열기: nexcess/magento-turpentine

공개 메소드들

메소드 설명
generate ( boolean $doClean = true ) : string Generate the Varnish 4.0-compatible VCL

보호된 메소드들

메소드 설명
_getAdvancedSessionValidation ( ) TODO: Check this
_getTemplateVars ( ) : array Build the list of template variables to apply to the VCL template
_vcl_director ( string $name, array $backendOptions ) : string Format a VCL director declaration, for load balancing
_vcl_director_backend ( string $host, string $port, string $descriptor, string $probeUrl = '', array $options = [] ) : string Format a VCL backend declaration to put inside director
_vcl_directors ( )

메소드 상세

_getAdvancedSessionValidation() 보호된 메소드

TODO: Check this

_getTemplateVars() 보호된 메소드

Build the list of template variables to apply to the VCL template
protected _getTemplateVars ( ) : array
리턴 array

_vcl_director() 보호된 메소드

Format a VCL director declaration, for load balancing
protected _vcl_director ( string $name, array $backendOptions ) : string
$name string name of the director, also used to select config settings
$backendOptions array options for each backend
리턴 string

_vcl_director_backend() 보호된 메소드

Format a VCL backend declaration to put inside director
protected _vcl_director_backend ( string $host, string $port, string $descriptor, string $probeUrl = '', array $options = [] ) : string
$host string backend host
$port string backend port
$descriptor string backend descriptor
$probeUrl string URL to check if backend is up
$options array extra options for backend
리턴 string

_vcl_directors() 보호된 메소드

protected _vcl_directors ( )

generate() 공개 메소드

Generate the Varnish 4.0-compatible VCL
public generate ( boolean $doClean = true ) : string
$doClean boolean if true, VCL will be cleaned (whitespaces stripped, etc.)
리턴 string