Commits

nucklearproject  committed 3ec5a0f

Updates

  • Participants
  • Parent commits 4b7148e

Comments (0)

Files changed (3)

 assets/*
 protected/runtime/*
 #protected/data/*.db
-protected/tests/report/*
+protected/tests/report/*
+
+
+---------------
+
+{
+	"binary_file_patterns":
+	[
+		"*.jpg",
+		"*.jpeg",
+		"*.png",
+		"*.gif",
+		"*.ttf",
+		"*.tga",
+		"*.dds",
+		"*.ico",
+		"*.eot",
+		"*.pdf",
+		"*.swf",
+		"*.jar",
+		"*.zip",
+		"*.swp"
+	],
+	"color_scheme": "Packages/Color Scheme - Default/Pastels on Dark.tmTheme",
+	"default_line_ending": "unix",
+	"file_exclude_patterns":
+	[
+		"*.pyc",
+		"*.pyo",
+		"*.exe",
+		"*.dll",
+		"*.obj",
+		"*.o",
+		"*.a",
+		"*.lib",
+		"*.so",
+		"*.dylib",
+		"*.ncb",
+		"*.sdf",
+		"*.suo",
+		"*.pdb",
+		"*.idb",
+		".DS_Store",
+		"*.class",
+		"*.psd",
+		"*.db",
+		".*",
+		"*.tar",
+		"*.gz",
+		"*.zip",
+		"*.sublime-project",
+		"*.sublime-workspace"
+	],
+	"folder_exclude_patterns":
+	[
+		".svn",
+		".idea",
+		".git",
+		".hg",
+		"CVS",
+		"assets",
+		"images",
+		"nbproject",
+		".settings"
+	],
+	"font_face": "Consolas",
+	"font_size": 12.0,
+	"highlight_line": true,
+	"ignored_packages":
+	[
+		"Vintage"
+	],
+	"line_padding_bottom": 2,
+	"line_padding_top": 1,
+	"phoenix_highlight_current_tab": true,
+	"save_on_focus_lost": true,
+	"scroll_speed": 0,
+	"show_tab_close_buttons": false,
+	"soda_classic_tabs": false,
+	"tab_size": 4,
+	"theme": "Soda Light.sublime-theme",
+	"translate_tabs_to_spaces": true,
+	"tree_animation_enabled": false,
+	"trim_trailing_white_space_on_save": true,
+	"word_wrap": true
+}

File protected/data/yii.db

Binary file modified.

File protected/widgets/SimplaPager.php

+<?php
+class SimplaPager extends CLinkPager{
+	const CSS_HIDDEN_PAGE='hidden';
+	const CSS_SELECTED_PAGE='current';
+
+	public $nextPageLabel = 'Siguiente &gt;';
+	public $prevPagelabel = '&lt; Previo';
+	public $firstPageLabel = '&lt;&lt; Primero';
+	public $lastPageLabel = 'Ultimo &gt;&gt;';
+	public $header = '';
+
+	/**
+	 * Executes the widget.
+	 * This overrides the parent implementation by displaying the generated page buttons.
+	 */
+	public function run()
+	{
+		$buttons=$this->createPageButtons();
+		if(empty($buttons))
+			return;
+		echo $this->header;
+		echo implode("&nbsp;",$buttons);
+		echo $this->footer;
+	}
+	/**
+	 * Creates a page button.
+	 * You may override this method to customize the page buttons.
+	 * @param string the text label for the button
+	 * @param integer the page number
+	 * @param string the CSS class for the page button. This could be 'page', 'first', 'last', 'next' or 'previous'.
+	 * @param boolean whether this page button is visible
+	 * @param boolean whether this page button is selected
+	 * @return string the generated button
+	 */
+	protected function createPageButton($label,$page,$class,$hidden,$selected)
+	{
+		if($hidden || $selected)
+			$class=' '.($hidden ? self::CSS_HIDDEN_PAGE : self::CSS_SELECTED_PAGE);
+		$class .= ' number';
+
+		return CHtml::link($label,'#',array('class'=>$class, 'onclick'=>"site.call(CONST_MAIN_LAYER,'{$this->createPageUrl($this->getController(),$page)}');"));
+	}
+	/**
+	 * Creates the URL suitable for pagination.
+	 * This method is mainly called by pagers when creating URLs used to
+	 * perform pagination. The default implementation is to call
+	 * the controller's createUrl method with the page information.
+	 * You may override this method if your URL scheme is not the same as
+	 * the one supported by the controller's createUrl method.
+	 * @param CController the controller that will create the actual URL
+	 * @param integer the page that the URL should point to. This is a zero-based index.
+	 * @return string the created URL
+	 */
+	public function createPageUrl($controller,$page)
+	{
+		$params=$this->getPages()->params===null ? $_REQUEST : $this->getPages()->params;
+		if($page>0) // page 0 is the default
+			$params[$this->getPages()->pageVar]=$page+1;
+		else
+			unset($params[$this->getPages()->pageVar]);
+		return $controller->createUrl($this->getPages()->route,$params);
+	}
+
+	}