Lines Matching refs:defaults
38 $defaults = $action->getDefaults();
41 if ($attrs['thumbnailsize'] !== $defaults['thumbnailsize']) {
44 if ($attrs['imagesize'] !== $defaults['imagesize']) {
48 $query[] = $this->extractFlagParam('showname', $attrs, $defaults);
49 $query[] = $this->extractFlagParam('showtitle', $attrs, $defaults);
50 $query[] = $this->extractFlagParam('cache', $attrs, $defaults);
51 $query[] = $this->extractFlagParam('crop', $attrs, $defaults);
52 $query[] = $this->extractFlagParam('direct', $attrs, $defaults);
53 $query[] = $this->extractFlagParam('lightbox', $attrs, $defaults);
54 $query[] = $this->extractFlagParam('reverse', $attrs, $defaults);
55 $query[] = $this->extractFlagParam('recursive', $attrs, $defaults);
58 if ((int)$attrs['cols'] !== (int)$defaults['cols']) {
61 if ((int)$attrs['limit'] !== (int)$defaults['limit']) {
64 if ((int)$attrs['offset'] !== (int)$defaults['offset']) {
67 if ((int)$attrs['paginate'] !== (int)$defaults['paginate']) {
70 if ((int)$attrs['sort'] !== (int)$defaults['sort']) {
91 * @param array $defaults The default options
95 protected function extractFlagParam($paramName, $data, $defaults)
97 if ((bool)$data[$paramName] !== (bool)$defaults[$paramName]) {
98 return ($defaults[$paramName] ? 'no' : '') . $paramName;