FUEL CMS User Guide : Version 1.5.2


Fuel Validate Class

This class extends the Fuel_advanced_module class.

Function Reference [+]

$this->fuel->validate->initialize([$params=array()])

Initialize the validate object. Accepts an associative array as input, containing backup preferences. Also will set the values in the config as properties of this object.

Returns

void

Parameters

(array) $params config preferences

$this->fuel->validate->html('$uri', ['$just_status'=FALSE])

Will run the W3C HTML validation.

Returns

void

Parameters

(string) $uri The URI path to the local page you want to validate
(boolean) $just_status Determines whether it will return just the status or if it will return the full report. Default is FALSE (optional)

Will validate the links on a page.

Returns

void

Parameters

(string) $url The URI path to the local page you want to validate
(boolean) $just_invalid Determines whether it will return just the invalid links or all of them. Default is FALSE, meaning it will just return invalid links (optional)

$this->fuel->validate->size_report('$url')

Will return an estimated download size of the page including external assets like images, js and CSS files.

Returns

void

Parameters

(string) $url The URI path to the local page you want to validate