├── tests
├── tmp
│ ├── cache
│ │ └── index.html
│ ├── gittest
│ ├── libraries
│ │ └── index.html
│ ├── .gitignore
│ ├── configuration.php
│ ├── config.jweb-wrongclass.php
│ ├── test.feed
│ ├── test.bad.feed
│ └── test.myfeed.feed
├── suites
│ ├── legacy
│ │ ├── model
│ │ │ ├── stubs
│ │ │ │ ├── barbaz.php
│ │ │ │ ├── lead.php
│ │ │ │ ├── foobar.php
│ │ │ │ ├── room.php
│ │ │ │ └── name.php
│ │ │ ├── JModelItemTest.php
│ │ │ └── JModelFormTest.php
│ │ ├── controller
│ │ │ └── stubs
│ │ │ │ ├── component2
│ │ │ │ └── controller.php
│ │ │ │ ├── component1
│ │ │ │ └── controller.json.php
│ │ │ │ └── controllerform.php
│ │ ├── pathway
│ │ │ └── stubs
│ │ │ │ └── includes
│ │ │ │ └── pathway.php
│ │ ├── installer
│ │ │ ├── data
│ │ │ │ ├── pkg_joomla.xml
│ │ │ │ └── joomla.xml
│ │ │ └── JInstallerManifestTest.php
│ │ ├── table
│ │ │ └── JTableModuleTest.php
│ │ └── categories
│ │ │ └── JCategoriesTest.php
│ ├── unit
│ │ ├── stubs
│ │ │ ├── discover1
│ │ │ │ ├── enterprise.txt
│ │ │ │ ├── columbia.php
│ │ │ │ └── challenger.php
│ │ │ ├── discover2
│ │ │ │ ├── discover3
│ │ │ │ │ └── atlantis.php
│ │ │ │ └── challenger.php
│ │ │ ├── chess
│ │ │ │ └── piece
│ │ │ │ │ └── pawn.php
│ │ │ ├── bogusload.php
│ │ │ ├── Color
│ │ │ │ └── Rgb
│ │ │ │ │ └── Red.php
│ │ │ ├── Color2
│ │ │ │ └── Blue.php
│ │ │ ├── animal1
│ │ │ │ └── cat.php
│ │ │ └── animal2
│ │ │ │ └── dog.php
│ │ └── joomla
│ │ │ ├── utilities
│ │ │ └── stubs
│ │ │ │ └── empty.xml
│ │ │ ├── view
│ │ │ ├── layouts1
│ │ │ │ ├── olivia.php
│ │ │ │ ├── peter.php
│ │ │ │ ├── astrid.phtml
│ │ │ │ └── fringe
│ │ │ │ │ └── division.php
│ │ │ ├── layouts2
│ │ │ │ ├── olivia.php
│ │ │ │ └── fauxlivia.php
│ │ │ ├── stubs
│ │ │ │ ├── thtml.php
│ │ │ │ └── tbase.php
│ │ │ └── mocks
│ │ │ │ └── JModelMock.php
│ │ │ ├── registry
│ │ │ └── stubs
│ │ │ │ ├── jregistry.ini
│ │ │ │ ├── jregistry.json
│ │ │ │ └── JRegistryInspector.php
│ │ │ ├── form
│ │ │ ├── language
│ │ │ │ └── en-GB
│ │ │ │ │ └── en-GB.form_test.ini
│ │ │ ├── _testfields
│ │ │ │ ├── bar.php
│ │ │ │ ├── foo.php
│ │ │ │ ├── modal
│ │ │ │ │ ├── bar.php
│ │ │ │ │ └── foo.php
│ │ │ │ └── test.php
│ │ │ ├── rule
│ │ │ │ ├── JFormRuleEqualsTest.php
│ │ │ │ └── JFormRuleUsernameTest.php
│ │ │ ├── _testrules
│ │ │ │ └── custom.php
│ │ │ ├── fields
│ │ │ │ └── inspectors
│ │ │ │ │ └── JFormFieldCalendar.php
│ │ │ ├── JFormRuleTest.php
│ │ │ └── example.xml
│ │ │ ├── language
│ │ │ └── data
│ │ │ │ ├── good.ini
│ │ │ │ └── bad.ini
│ │ │ ├── table
│ │ │ ├── stubs
│ │ │ │ ├── jos_session.csv
│ │ │ │ ├── jos_dbtest_composite.csv
│ │ │ │ ├── jos_languages.csv
│ │ │ │ ├── jos_assets_composite.csv
│ │ │ │ ├── jtableuser.xml
│ │ │ │ ├── dbtestcomposite.php
│ │ │ │ └── nested.php
│ │ │ ├── JTableAssetTest.php
│ │ │ └── JTableViewlevelTest.php
│ │ │ ├── archive
│ │ │ ├── logo.gz
│ │ │ ├── logo.bz2
│ │ │ ├── logo.tar
│ │ │ ├── logo.zip
│ │ │ └── JArchiveZipInspector.php
│ │ │ ├── google
│ │ │ ├── logo.bmp
│ │ │ ├── logo.gif
│ │ │ ├── logo.jpg
│ │ │ └── logo.png
│ │ │ ├── image
│ │ │ └── stubs
│ │ │ │ ├── koala.bmp
│ │ │ │ ├── koala.gif
│ │ │ │ ├── koala.jpg
│ │ │ │ ├── koala.png
│ │ │ │ └── JImageFilterInspector.php
│ │ │ ├── crypt
│ │ │ └── cipher
│ │ │ │ └── stubs
│ │ │ │ └── encrypted
│ │ │ │ ├── simple
│ │ │ │ ├── 5.txt
│ │ │ │ ├── 3.txt
│ │ │ │ ├── 1.txt
│ │ │ │ ├── 4.txt
│ │ │ │ └── 2.txt
│ │ │ │ ├── 3des
│ │ │ │ ├── 1.txt
│ │ │ │ ├── 2.txt
│ │ │ │ ├── 3.txt
│ │ │ │ ├── 4.txt
│ │ │ │ ├── 5.txt
│ │ │ │ ├── key.priv
│ │ │ │ └── key.pub
│ │ │ │ ├── blowfish
│ │ │ │ ├── 1.txt
│ │ │ │ ├── 2.txt
│ │ │ │ ├── 3.txt
│ │ │ │ ├── 4.txt
│ │ │ │ ├── 5.txt
│ │ │ │ ├── key.pub
│ │ │ │ └── key.priv
│ │ │ │ └── rijndael256
│ │ │ │ ├── 1.txt
│ │ │ │ ├── 2.txt
│ │ │ │ ├── 3.txt
│ │ │ │ ├── 4.txt
│ │ │ │ ├── 5.txt
│ │ │ │ ├── key.priv
│ │ │ │ └── key.pub
│ │ │ ├── document
│ │ │ ├── image
│ │ │ │ ├── logo.gif
│ │ │ │ ├── logo.jpeg
│ │ │ │ ├── logo.jpg
│ │ │ │ └── logo.png
│ │ │ ├── feed
│ │ │ │ ├── JFeedImageTest.php
│ │ │ │ ├── JFeedEnclosureTest.php
│ │ │ │ └── JFeedItemTest.php
│ │ │ ├── opensearch
│ │ │ │ └── JOpenSearchUrlTest.php
│ │ │ └── html
│ │ │ │ └── renderer
│ │ │ │ ├── JDocumentRendererModuleTest.php
│ │ │ │ ├── JDocumentRendererMessageTest.php
│ │ │ │ ├── JDocumentRendererModulesTest.php
│ │ │ │ └── JDocumentRendererComponentTest.php
│ │ │ ├── keychain
│ │ │ └── data
│ │ │ │ ├── cli-keychain.dat
│ │ │ │ ├── cli-passphrase.dat
│ │ │ │ ├── README.md
│ │ │ │ ├── publickey.pem
│ │ │ │ └── private.key
│ │ │ ├── base
│ │ │ └── stubs
│ │ │ │ ├── testadapter2.php
│ │ │ │ ├── testadapter.php
│ │ │ │ ├── testadapter3.php
│ │ │ │ └── testadapter4.php
│ │ │ ├── html
│ │ │ └── html
│ │ │ │ ├── testfiles
│ │ │ │ ├── empty.php
│ │ │ │ └── inspector.php
│ │ │ │ ├── TestHelpers
│ │ │ │ └── JHtmlSelect-helper-dataset.php
│ │ │ │ ├── JHtmlContentTest.php
│ │ │ │ └── JHtmlRulesTest.php
│ │ │ ├── linkedin
│ │ │ └── stubs
│ │ │ │ └── JLinkedinObjectMock.php
│ │ │ ├── log
│ │ │ └── loggers
│ │ │ │ ├── stubs
│ │ │ │ ├── database
│ │ │ │ │ ├── S01.xml
│ │ │ │ │ ├── S01E01.xml
│ │ │ │ │ └── inspector.php
│ │ │ │ ├── callback
│ │ │ │ │ └── inspector.php
│ │ │ │ ├── w3c
│ │ │ │ │ └── inspector.php
│ │ │ │ ├── formattedtext
│ │ │ │ │ └── inspector.php
│ │ │ │ └── messagequeue
│ │ │ │ │ └── mock.application.php
│ │ │ │ └── JLogLoggerSyslogTest.php
│ │ │ ├── model
│ │ │ └── stubs
│ │ │ │ ├── tbase.php
│ │ │ │ └── tdatabase.php
│ │ │ ├── application
│ │ │ ├── web
│ │ │ │ └── stubs
│ │ │ │ │ └── controllers
│ │ │ │ │ ├── baz.php
│ │ │ │ │ ├── bar.php
│ │ │ │ │ └── foo.php
│ │ │ └── stubs
│ │ │ │ ├── JApplicationBaseInspector.php
│ │ │ │ └── JApplicationCliInspector.php
│ │ │ ├── openstreetmap
│ │ │ └── stubs
│ │ │ │ └── JOpenstreetmapObjectMock.php
│ │ │ ├── feed
│ │ │ ├── stubs
│ │ │ │ ├── samples
│ │ │ │ │ ├── atom
│ │ │ │ │ │ ├── 1.0.xml
│ │ │ │ │ │ └── 0.3.xml
│ │ │ │ │ └── rss
│ │ │ │ │ │ └── media.xml
│ │ │ │ └── JFeedParserMock.php
│ │ │ └── JFeedPersonTest.php
│ │ │ ├── input
│ │ │ ├── stubs
│ │ │ │ ├── JFilterInputMock.php
│ │ │ │ ├── JInputInspector.php
│ │ │ │ ├── JFilterInputMockTracker.php
│ │ │ │ └── JInputCliInspector.php
│ │ │ └── JInputCookieTest.php
│ │ │ ├── controller
│ │ │ └── stubs
│ │ │ │ └── tbase.php
│ │ │ ├── data
│ │ │ └── stubs
│ │ │ │ ├── buran.php
│ │ │ │ ├── capitaliser.php
│ │ │ │ └── vostok.php
│ │ │ ├── event
│ │ │ └── JEventStub.php
│ │ │ ├── plugin
│ │ │ └── JPluginHelperInspector.php
│ │ │ ├── cache
│ │ │ ├── controller
│ │ │ │ ├── JCacheControllerRaw.php
│ │ │ │ └── JCacheControllerCallback.helper.php
│ │ │ └── storage
│ │ │ │ └── JCacheStorageHelperTest.php
│ │ │ ├── user
│ │ │ └── stubs
│ │ │ │ └── FakeAuthenticationPlugin.php
│ │ │ ├── github
│ │ │ └── stubs
│ │ │ │ └── JGithubObjectMock.php
│ │ │ ├── session
│ │ │ └── storage
│ │ │ │ └── JSessionStorageNoneTest.php
│ │ │ ├── oauth1
│ │ │ └── stubs
│ │ │ │ └── JOAuth1ClientInspector.php
│ │ │ └── database
│ │ │ └── JDatabaseQueryInspector.php
│ └── database
│ │ ├── driver
│ │ ├── mysql
│ │ │ └── stubs
│ │ │ │ └── database.xml
│ │ ├── mysqli
│ │ │ └── stubs
│ │ │ │ └── database.xml
│ │ └── postgresql
│ │ │ └── stubs
│ │ │ └── database.xml
│ │ └── stubs
│ │ └── mysql.sql
├── .gitignore
└── core
│ └── mock
│ ├── database
│ └── query.php
│ ├── config.php
│ ├── application.php
│ ├── controller.php
│ ├── application
│ └── cli.php
│ └── document.php
├── media
└── system
│ ├── index.html
│ ├── css
│ ├── index.html
│ ├── mootree_rtl.css
│ └── mootree.css
│ ├── js
│ ├── index.html
│ ├── caption.js
│ ├── multiselect.js
│ └── switcher.js
│ ├── swf
│ ├── index.html
│ └── uploader.swf
│ └── images
│ ├── index.html
│ ├── modal
│ ├── index.html
│ ├── bg_e.png
│ ├── bg_n.png
│ ├── bg_ne.png
│ ├── bg_nw.png
│ ├── bg_s.png
│ ├── bg_se.png
│ ├── bg_sw.png
│ ├── bg_w.png
│ ├── spinner.gif
│ └── closebox.png
│ ├── mooRainbow
│ ├── index.html
│ ├── blank.gif
│ ├── moor_arrows.gif
│ ├── moor_cursor.gif
│ ├── moor_slider.png
│ ├── moor_boverlay.png
│ └── moor_woverlay.png
│ ├── new.png
│ ├── arrow.png
│ ├── blank.png
│ ├── edit.png
│ ├── indent.png
│ ├── sort0.png
│ ├── sort1.png
│ ├── calendar.png
│ ├── indent1.png
│ ├── indent2.png
│ ├── indent3.png
│ ├── indent4.png
│ ├── indent5.png
│ ├── mootree.gif
│ ├── sort_asc.png
│ ├── tooltip.png
│ ├── weblink.png
│ ├── arrow_rtl.png
│ ├── checked_out.png
│ ├── emailButton.png
│ ├── icon_error.gif
│ ├── livemarks.png
│ ├── no_indent.png
│ ├── notice-info.png
│ ├── notice-note.png
│ ├── pdf_button.png
│ ├── printButton.png
│ ├── rating_star.png
│ ├── sort_desc.png
│ ├── sort_none.png
│ ├── livemarks-rtl.png
│ ├── notice-alert.png
│ ├── edit_unpublished.png
│ ├── icon-16-logout.png
│ ├── mootree_loader.gif
│ ├── notice-download.png
│ └── rating_star_blank.png
├── .gitmodules
├── composer.json
├── libraries
├── joomla
│ ├── database
│ │ ├── query
│ │ │ ├── pdo.php
│ │ │ ├── mysql.php
│ │ │ └── sqlazure.php
│ │ ├── exporter.php
│ │ ├── importer.php
│ │ ├── iterator
│ │ │ ├── oracle.php
│ │ │ ├── sqlite.php
│ │ │ └── azure.php
│ │ └── driver
│ │ │ └── sqlazure.php
│ ├── session
│ │ └── storage
│ │ │ └── none.php
│ ├── filesystem
│ │ └── meta
│ │ │ └── language
│ │ │ └── en-GB
│ │ │ └── en-GB.lib_joomla_filesystem_patcher.ini
│ ├── http
│ │ └── response.php
│ ├── form
│ │ ├── fields
│ │ │ ├── url.php
│ │ │ ├── tel.php
│ │ │ ├── imagelist.php
│ │ │ └── cachehandler.php
│ │ └── rule
│ │ │ └── boolean.php
│ ├── model
│ │ └── model.php
│ ├── image
│ │ └── filter
│ │ │ ├── emboss.php
│ │ │ ├── negate.php
│ │ │ ├── sketchy.php
│ │ │ ├── grayscale.php
│ │ │ ├── edgedetect.php
│ │ │ ├── smooth.php
│ │ │ ├── contrast.php
│ │ │ └── brightness.php
│ ├── html
│ │ ├── form.php
│ │ └── language
│ │ │ └── en-GB
│ │ │ └── en-GB.jhtmldate.ini
│ ├── view
│ │ ├── view.php
│ │ └── base.php
│ ├── document
│ │ ├── html
│ │ │ └── renderer
│ │ │ │ ├── component.php
│ │ │ │ └── modules.php
│ │ └── raw
│ │ │ └── raw.php
│ ├── crypt
│ │ └── cipher
│ │ │ ├── 3des.php
│ │ │ ├── blowfish.php
│ │ │ └── rijndael256.php
│ ├── archive
│ │ └── extractable.php
│ ├── data
│ │ └── dumpable.php
│ ├── utilities
│ │ └── utility.php
│ ├── feed
│ │ └── person.php
│ └── controller
│ │ └── controller.php
├── phputf8
│ ├── strrev.php
│ ├── strcasecmp.php
│ ├── substr_replace.php
│ ├── ucfirst.php
│ ├── str_split.php
│ ├── stristr.php
│ ├── strcspn.php
│ └── strspn.php
├── compat
│ └── jsonserializable.php
├── simplepie
│ └── README.txt
└── legacy
│ └── model
│ └── item.php
├── CONTRIBUTING.markdown
├── packager.xml
├── docs
└── manual
│ └── en-US
│ ├── chapters
│ └── packages
│ │ └── object.md
│ ├── menu.md
│ └── coding-standards
│ └── preface.md
└── packager.test.xml
/tests/tmp/cache/index.html:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/tests/tmp/gittest:
--------------------------------------------------------------------------------
1 | GistContent
2 |
--------------------------------------------------------------------------------
/tests/tmp/libraries/index.html:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/tests/suites/legacy/model/stubs/barbaz.php:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/tests/suites/unit/stubs/discover1/enterprise.txt:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/media/system/index.html:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/tests/suites/unit/joomla/utilities/stubs/empty.xml:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/media/system/css/index.html:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/media/system/js/index.html:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/media/system/swf/index.html:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/media/system/images/index.html:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/tests/suites/legacy/controller/stubs/component2/controller.php:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/tests/suites/unit/joomla/view/layouts1/olivia.php:
--------------------------------------------------------------------------------
1 | Olivia Dunham
--------------------------------------------------------------------------------
/tests/suites/unit/joomla/view/layouts1/peter.php:
--------------------------------------------------------------------------------
1 | Peter Bishop
--------------------------------------------------------------------------------
/tests/suites/unit/joomla/view/layouts2/olivia.php:
--------------------------------------------------------------------------------
1 | Peter's Olivia
--------------------------------------------------------------------------------
/media/system/images/modal/index.html:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/tests/suites/legacy/controller/stubs/component1/controller.json.php:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/media/system/images/mooRainbow/index.html:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/tests/suites/unit/joomla/view/layouts1/astrid.phtml:
--------------------------------------------------------------------------------
1 | Astrid Farnsworth
2 |
--------------------------------------------------------------------------------
/tests/suites/unit/joomla/view/layouts1/fringe/division.php:
--------------------------------------------------------------------------------
1 | Fringe Division
--------------------------------------------------------------------------------
/tests/suites/unit/joomla/registry/stubs/jregistry.ini:
--------------------------------------------------------------------------------
1 | [section]
2 | foo="bar"
--------------------------------------------------------------------------------
/tests/suites/unit/joomla/view/layouts2/fauxlivia.php:
--------------------------------------------------------------------------------
1 | Olivia Dunham (red hair)
--------------------------------------------------------------------------------
/tests/suites/unit/joomla/registry/stubs/jregistry.json:
--------------------------------------------------------------------------------
1 | {
2 | "foo":"bar"
3 | }
4 |
--------------------------------------------------------------------------------
/tests/.gitignore:
--------------------------------------------------------------------------------
1 | /.gitignore
2 | /config.php
3 | /config_mysql.php
4 | /config_mysqli.php
5 |
--------------------------------------------------------------------------------
/tests/suites/unit/joomla/form/language/en-GB/en-GB.form_test.ini:
--------------------------------------------------------------------------------
1 | DEFAULT_KEY="My Default"
2 |
--------------------------------------------------------------------------------
/tests/suites/unit/joomla/language/data/good.ini:
--------------------------------------------------------------------------------
1 | ; This is a good ini file
2 |
3 | FOO="Bar"
--------------------------------------------------------------------------------
/tests/suites/unit/joomla/table/stubs/jos_session.csv:
--------------------------------------------------------------------------------
1 | 'session_id','userid'
2 | '2352dfgag','5'
--------------------------------------------------------------------------------
/tests/tmp/.gitignore:
--------------------------------------------------------------------------------
1 | /cache/*.php
2 | /cache/_testing
3 | /media
4 | /themes
5 | /error.*
6 |
--------------------------------------------------------------------------------
/tests/suites/unit/stubs/discover1/columbia.php:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/tests/suites/unit/stubs/discover1/challenger.php:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/media/system/images/new.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/joomla/joomla-platform/HEAD/media/system/images/new.png
--------------------------------------------------------------------------------
/tests/suites/unit/stubs/discover2/discover3/atlantis.php:
--------------------------------------------------------------------------------
1 | =5.3.1"
10 | },
11 | "config": {
12 | "vendor-dir": "libraries",
13 | "bin-dir": "bin"
14 | }
15 | }
--------------------------------------------------------------------------------
/tests/suites/unit/joomla/base/stubs/testadapter3.php:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | priority
5 | message
6 | date
7 | category
8 |
9 | 1
10 | Testing
11 | 1980-04-18 00:00:00
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/tests/suites/unit/joomla/view/stubs/thtml.php:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Joomla!
6 | Joomla! - the dynamic portal engine and content management system
7 | http://www.joomla.org
8 | Sun, 18 Dec 2011 18:39:17 +0000
9 | Joomla! 1.5 - Open Source Content Management
10 | en-gb
11 |
12 |
13 |
--------------------------------------------------------------------------------
/tests/tmp/test.bad.feed:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Joomla!
6 | Joomla! - the dynamic portal engine and content management system
7 | http://www.joomla.org
8 | Sun, 18 Dec 2011 18:39:17 +0000
9 | Joomla! 1.5 - Open Source Content Management
10 | en-gb
11 |
12 |
13 |
--------------------------------------------------------------------------------
/libraries/joomla/database/iterator/oracle.php:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Joomla!
6 | Joomla! - the dynamic portal engine and content management system
7 | http://www.joomla.org
8 | Sun, 18 Dec 2011 18:39:17 +0000
9 | Joomla! 1.5 - Open Source Content Management
10 | en-gb
11 |
12 |
13 |
--------------------------------------------------------------------------------
/media/system/css/mootree.css:
--------------------------------------------------------------------------------
1 | /**
2 | * @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
3 | * @license GNU General Public License version 2 or later; see LICENSE.txt
4 | */
5 |
6 | .mooTree_node {
7 | font-family: Verdana, Arial, Helvetica;
8 | font-size: 10px;
9 | white-space: nowrap;
10 | }
11 |
12 | .mooTree_text {
13 | padding-top: 3px;
14 | height: 15px;
15 | cursor: pointer;
16 | }
17 |
18 | .mooTree_img {
19 | float: left;
20 | width: 18px;
21 | height: 18px;
22 | overflow: hidden;
23 | }
24 |
25 | .mooTree_selected {
26 | background-color: #ffc;
27 | font-weight: bold;
28 | }
29 |
--------------------------------------------------------------------------------
/tests/suites/unit/joomla/application/stubs/JApplicationBaseInspector.php:
--------------------------------------------------------------------------------
1 | someMethodCalled = true;
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/tests/suites/unit/stubs/Color/Rgb/Red.php:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Example Feed
5 |
6 | 2003-12-13T18:30:02Z
7 |
8 | John Doe
9 |
10 | urn:uuid:60a76c80-d399-11d9-b93C-0003939e0af6
11 |
12 |
13 | Atom-Powered Robots Run Amok
14 |
15 | urn:uuid:1225c695-cfb8-4ebb-aaaa-80da344efa6a
16 | 2003-12-13T18:45:02Z
17 | Some text.
18 |
19 |
20 |
--------------------------------------------------------------------------------
/tests/suites/unit/joomla/input/stubs/JFilterInputMock.php:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | id
5 | name
6 | username
7 | email
8 | password
9 | usertype
10 | block
11 | sendEmail
12 | registerDate
13 | lastvisitDate
14 | activation
15 | params
16 |
17 |
18 | user_id
19 | group_id
20 |
21 |
22 |
--------------------------------------------------------------------------------
/tests/suites/unit/joomla/controller/stubs/tbase.php:
--------------------------------------------------------------------------------
1 | markTestIncomplete('TODO: Figure out how to test this logger.');
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/tests/suites/unit/joomla/log/loggers/stubs/w3c/inspector.php:
--------------------------------------------------------------------------------
1 |
2 |
3 | The name of your data feed
4 |
5 | 2005-10-11T18:30:02Z
6 |
7 | Google
8 |
9 | tag:google.com,2005-10-15:/support/products
10 |
11 | Red wool sweater
12 |
13 | Comfortable and soft, this sweater will keep you warm on
14 | those cold winter nights.
15 | tag:google.com,2005-10-15:/support/products
16 | 2005-10-13T18:30:02Z
17 | 2005-10-13T18:30:02Z
18 |
19 |
--------------------------------------------------------------------------------
/tests/suites/unit/joomla/log/loggers/stubs/formattedtext/inspector.php:
--------------------------------------------------------------------------------
1 | markTestIncomplete('This test has not been implemented yet.');
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/tests/suites/legacy/installer/data/pkg_joomla.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | PKG_JOOMLA
4 | joomla
5 | 2.5.0
6 | PKG_JOOMLA_XML_DESCRIPTION
7 | 2006
8 | Copyright (C) 2005 - 2013 Open Source Matters. All rights reserved.
9 | http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
10 | Joomla! Project
11 | admin@joomla.org
12 | http://www.joomla.org
13 | Joomla!
14 | http://www.joomla.org
15 | http://update.joomla.org/packages/joomla
16 |
17 |
18 |
--------------------------------------------------------------------------------
/libraries/compat/jsonserializable.php:
--------------------------------------------------------------------------------
1 | markTestIncomplete(
31 | 'This test has not been implemented yet.'
32 | );
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/tests/suites/unit/joomla/event/JEventStub.php:
--------------------------------------------------------------------------------
1 | calls[] = array('method' => 'myEvent', 'args' => func_get_args());
34 |
35 | return true;
36 | }
37 | }
38 |
--------------------------------------------------------------------------------
/tests/suites/unit/joomla/html/html/TestHelpers/JHtmlSelect-helper-dataset.php:
--------------------------------------------------------------------------------
1 | Test\n",
23 | array(
24 | array(
25 | 'value' => '1',
26 | 'text' => ' Test',
27 | ),
28 | ),
29 | ),
30 | );
31 | }
32 |
--------------------------------------------------------------------------------
/tests/suites/unit/joomla/form/rule/JFormRuleEqualsTest.php:
--------------------------------------------------------------------------------
1 | ');
29 |
30 | // Test fail conditions.
31 |
32 | // Test pass conditions.
33 |
34 | $this->markTestIncomplete();
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/tests/suites/unit/joomla/plugin/JPluginHelperInspector.php:
--------------------------------------------------------------------------------
1 | ');
30 |
31 | // Test fail conditions.
32 |
33 | // Test pass conditions.
34 |
35 | $this->markTestIncomplete();
36 | }
37 | }
38 |
--------------------------------------------------------------------------------
/tests/suites/unit/joomla/log/loggers/stubs/database/S01E01.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | priority
5 | message
6 | date
7 | category
8 |
9 | 1
10 | Testing
11 | 1980-04-18 00:00:00
12 |
13 |
14 |
15 | 64
16 | Testing Entry 02
17 | 2009-12-01 12:30:00
18 |
19 |
20 |
21 | 1
22 | Testing3
23 | 2010-12-01 02:30:00
24 | deprecated
25 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/libraries/joomla/model/model.php:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | libraries/loader.php
5 | libraries/platform.php
6 | libraries/compat
7 | libraries/joomla
8 | libraries/phpmailer
9 | libraries/phputf8
10 | libraries/simplepie
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/tests/suites/unit/joomla/html/html/JHtmlContentTest.php:
--------------------------------------------------------------------------------
1 | markTestIncomplete(
32 | 'This test has not been implemented yet.'
33 | );
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/tests/suites/unit/joomla/html/html/JHtmlRulesTest.php:
--------------------------------------------------------------------------------
1 | markTestIncomplete(
32 | 'This test has not been implemented yet.'
33 | );
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/tests/suites/unit/joomla/image/stubs/JImageFilterInspector.php:
--------------------------------------------------------------------------------
1 | handle, IMG_FILTER_EMBOSS);
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/libraries/joomla/form/rule/boolean.php:
--------------------------------------------------------------------------------
1 | ';
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/libraries/joomla/image/filter/negate.php:
--------------------------------------------------------------------------------
1 | handle, IMG_FILTER_NEGATE);
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/tests/suites/database/driver/mysql/stubs/database.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | id
5 | title
6 | start_date
7 | description
8 |
9 | 1
10 | Testing
11 | 1980-04-18 00:00:00
12 | one
13 |
14 |
15 | 2
16 | Testing2
17 | 1980-04-18 00:00:00
18 | one
19 |
20 |
21 | 3
22 | Testing3
23 | 1980-04-18 00:00:00
24 | three
25 |
26 |
27 | 4
28 | Testing4
29 | 1980-04-18 00:00:00
30 | four
31 |
32 |
33 |
34 |
--------------------------------------------------------------------------------
/tests/suites/database/driver/mysqli/stubs/database.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | id
5 | title
6 | start_date
7 | description
8 |
9 | 1
10 | Testing
11 | 1980-04-18 00:00:00
12 | one
13 |
14 |
15 | 2
16 | Testing2
17 | 1980-04-18 00:00:00
18 | one
19 |
20 |
21 | 3
22 | Testing3
23 | 1980-04-18 00:00:00
24 | three
25 |
26 |
27 | 4
28 | Testing4
29 | 1980-04-18 00:00:00
30 | four
31 |
32 |
33 |
34 |
--------------------------------------------------------------------------------
/tests/suites/unit/joomla/table/stubs/nested.php:
--------------------------------------------------------------------------------
1 | handle, IMG_FILTER_MEAN_REMOVAL);
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/tests/suites/database/driver/postgresql/stubs/database.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | id
5 | title
6 | start_date
7 | description
8 |
9 | 1
10 | Testing
11 | 1980-04-18 00:00:00
12 | one
13 |
14 |
15 | 2
16 | Testing2
17 | 1980-04-18 00:00:00
18 | one
19 |
20 |
21 | 3
22 | Testing3
23 | 1980-04-18 00:00:00
24 | three
25 |
26 |
27 | 4
28 | Testing4
29 | 1980-04-18 00:00:00
30 | four
31 |
32 |
33 |
34 |
--------------------------------------------------------------------------------
/libraries/joomla/html/language/en-GB/en-GB.jhtmldate.ini:
--------------------------------------------------------------------------------
1 | ; Joomla! Project
2 | ; Copyright (C) 2005 - 2013 Open Source Matters. All rights reserved.
3 | ; License GNU General Public License version 2 or later; see LICENSE.txt, see LICENSE.php
4 | ; Note : All ini files need to be saved as UTF-8 - No BOM
5 |
6 | JLIB_HTML_DATE_RELATIVE_DAYS="%s days ago"
7 | JLIB_HTML_DATE_RELATIVE_DAYS_1="%s day ago"
8 | JLIB_HTML_DATE_RELATIVE_DAYS_0="%s days ago"
9 | JLIB_HTML_DATE_RELATIVE_HOURS="%s hours ago"
10 | JLIB_HTML_DATE_RELATIVE_HOURS_1="%s hour ago"
11 | JLIB_HTML_DATE_RELATIVE_HOURS_0="%s hours ago"
12 | JLIB_HTML_DATE_RELATIVE_LESSTHANAMINUTE="Less than a minute ago"
13 | JLIB_HTML_DATE_RELATIVE_MINUTES="%s minutes ago"
14 | JLIB_HTML_DATE_RELATIVE_MINUTES_1="%s minute ago"
15 | JLIB_HTML_DATE_RELATIVE_MINUTES_0="%s minutes ago"
16 | JLIB_HTML_DATE_RELATIVE_WEEKS="%s weeks ago"
17 | JLIB_HTML_DATE_RELATIVE_WEEKS_1="%s week ago"
18 | JLIB_HTML_DATE_RELATIVE_WEEKS_0="%s weeks ago"
19 |
--------------------------------------------------------------------------------
/libraries/joomla/image/filter/grayscale.php:
--------------------------------------------------------------------------------
1 | handle, IMG_FILTER_GRAYSCALE);
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/libraries/joomla/view/view.php:
--------------------------------------------------------------------------------
1 | calls[$name]))
32 | {
33 | $this->calls[$name] = array();
34 | }
35 | $this->calls[$name][] = $arguments;
36 |
37 | return $arguments[0];
38 | }
39 |
40 | }
41 |
--------------------------------------------------------------------------------
/libraries/joomla/form/fields/tel.php:
--------------------------------------------------------------------------------
1 | handle, IMG_FILTER_EDGEDETECT);
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/libraries/phputf8/str_split.php:
--------------------------------------------------------------------------------
1 | object = JCache::getInstance('', array());
34 | }
35 |
36 | }
37 |
--------------------------------------------------------------------------------
/tests/suites/unit/joomla/feed/JFeedPersonTest.php:
--------------------------------------------------------------------------------
1 | assertEquals($person->name, 'Name');
32 | $this->assertEquals($person->email, 'eMail');
33 | $this->assertEquals($person->uri, 'URI');
34 | $this->assertEquals($person->type, 'test');
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/tests/suites/unit/joomla/input/stubs/JInputCliInspector.php:
--------------------------------------------------------------------------------
1 | markTestIncomplete('This test has not been implemented yet.');
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/docs/manual/en-US/chapters/packages/object.md:
--------------------------------------------------------------------------------
1 | ## The Object Package
2 |
3 | ### Revision History
4 |
5 | The `JObject` class was introduced in version 1.5 of the Joomla CMS and formed part of version 11.1 of the Joomla Platform.
6 |
7 | Its primary use was to provide some features that were not present in PHP4:
8 |
9 | * an anonymous constructor,
10 | * getters and setters, and
11 | * toString.
12 |
13 | It was used as a basic object instead of the basic PHP object `stdClass` (hence the name `JObject`). Many classes in the whole Joomla Framework were derived from it because it provided the PHP 5-like functionality and compatibility. Because JObject was ubiquitous in the framework it was a handy place to handle errors in times before exception handling was available.
14 |
15 | The following method was removed in version 12.3:
16 |
17 | * `__toString`
18 |
19 | The following methods are marked as deprecated and will be removed in 13.1:
20 |
21 | * `getError` & `getErrors` - Throw exceptions instead of relying on these methods.
22 |
--------------------------------------------------------------------------------
/tests/suites/legacy/installer/data/joomla.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | Joomla! Platform
4 | joomla
5 | 11.4
6 | LIB_JOOMLA_XML_DESCRIPTION
7 | 2008
8 | Copyright (C) 2005 - 2013 Open Source Matters. All rights reserved.
9 | http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
10 | Joomla! Project
11 | admin@joomla.org
12 | http://www.joomla.org
13 | Joomla!
14 | http://www.joomla.org
15 | http://update.joomla.org/libraries/joomla
16 |
17 | joomla
18 | import.php
19 | loader.php
20 | platform.php
21 |
22 |
23 |
--------------------------------------------------------------------------------
/tests/suites/unit/joomla/application/web/stubs/controllers/bar.php:
--------------------------------------------------------------------------------
1 | markTestIncomplete('This test has not been implemented yet.');
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/tests/core/mock/config.php:
--------------------------------------------------------------------------------
1 | getMock(
35 | 'JConfig',
36 | $methods,
37 | // Constructor arguments.
38 | array(),
39 | // Mock class name.
40 | '',
41 | // Call original constructor.
42 | false
43 | );
44 |
45 | return $mockObject;
46 | }
47 | }
48 |
--------------------------------------------------------------------------------
/libraries/joomla/database/query/sqlazure.php:
--------------------------------------------------------------------------------
1 | markTestIncomplete('This test has not been implemented yet.');
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/tests/suites/legacy/controller/stubs/controllerform.php:
--------------------------------------------------------------------------------
1 | getMock(
36 | 'JModel',
37 | $methods,
38 | // Constructor arguments.
39 | array(),
40 | // Mock class name.
41 | '',
42 | // Call original constructor.
43 | false
44 | );
45 |
46 | return $mockObject;
47 | }
48 | }
49 |
--------------------------------------------------------------------------------
/libraries/joomla/document/html/renderer/component.php:
--------------------------------------------------------------------------------
1 |
2 |
3 | Title of RSS feed
4 | http://www.google.com
5 | Details about the feed
6 | Mon, 24 Nov 08 21:44:21 -0500
7 | en
8 |
9 | -
10 | Article 1
11 |
12 | http://youtube.com/?v=y6_-cLWwEU0
13 |
14 |
16 | Jared on StackOverflow
17 | tag1,tag2
18 | Jared
19 |
21 |
22 |
23 |
--------------------------------------------------------------------------------
/libraries/phputf8/strcspn.php:
--------------------------------------------------------------------------------
1 | markTestIncomplete(
38 | 'This test has not been implemented yet.'
39 | );
40 | }
41 |
42 | }
43 |
--------------------------------------------------------------------------------
/tests/suites/unit/joomla/log/loggers/stubs/messagequeue/mock.application.php:
--------------------------------------------------------------------------------
1 | queue[] = array('message' => $msg, 'type' => strtolower($type));
42 | }
43 | }
44 |
--------------------------------------------------------------------------------
/libraries/phputf8/strspn.php:
--------------------------------------------------------------------------------
1 | markTestIncomplete(
38 | 'This test has not been implemented yet.'
39 | );
40 | }
41 |
42 | }
43 |
--------------------------------------------------------------------------------
/docs/manual/en-US/menu.md:
--------------------------------------------------------------------------------
1 | - Chapters
2 | - [Introductions](chapters/introduction.md)
3 | - [JCrypt](chapters/packages/crypt.md)
4 | - [JData](chapters/packages/data.md)
5 | - [JDatabase](chapters/packages/database.md)
6 | - [JGithub](chapters/packages/github.md)
7 | - [JGoogle](chapters/packages/google.md)
8 | - [JHttp](chapters/packages/http.md)
9 | - [JImage](chapters/packages/image.md)
10 | - [JInput](chapters/packages/input.md)
11 | - [JKeychain](chapters/packages/keychain.md)
12 | - [JLog](chapters/packages/log.md)
13 | - [MVC](chapters/packages/mvc.md)
14 | - [JObject](chapters/packages/object.md)
15 | - [JProfiler](chapters/packages/profiler.md)
16 | - [Testing](chapters/testing.md)
17 |
18 | - Coding Standards
19 | - [Preface](coding-standards/preface.md)
20 | - [Source Code Management](coding-standards/chapters/source-code-management.md)
21 | - [Basic Guidelines](coding-standards/chapters/basic-guidelines.md)
22 | - [Comments](coding-standards/chapters/comments.md)
23 | - [PHP Code](coding-standards/chapters/php.md)
24 |
25 | - Appendices
26 | - [Code Analysis](appendices/analysis.md)
27 | - [History](appendices/history.md)
28 |
--------------------------------------------------------------------------------
/tests/suites/unit/joomla/document/html/renderer/JDocumentRendererMessageTest.php:
--------------------------------------------------------------------------------
1 | markTestIncomplete(
38 | 'This test has not been implemented yet.'
39 | );
40 | }
41 |
42 | }
43 |
--------------------------------------------------------------------------------
/tests/suites/unit/joomla/document/html/renderer/JDocumentRendererModulesTest.php:
--------------------------------------------------------------------------------
1 | markTestIncomplete(
38 | 'This test has not been implemented yet.'
39 | );
40 | }
41 |
42 | }
43 |
--------------------------------------------------------------------------------
/tests/suites/unit/joomla/document/html/renderer/JDocumentRendererComponentTest.php:
--------------------------------------------------------------------------------
1 | markTestIncomplete(
37 | 'This test has not been implemented yet.'
38 | );
39 | }
40 |
41 | }
42 |
--------------------------------------------------------------------------------
/libraries/joomla/crypt/cipher/3des.php:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | libraries/import.php
5 | libraries/loader.php
6 | libraries/platform.php
7 | tests/version.php
8 | libraries/compat
9 | libraries/joomla
10 | libraries/phpmailer
11 | libraries/phputf8
12 | libraries/simplepie
13 | tests/core
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
--------------------------------------------------------------------------------
/tests/suites/unit/joomla/user/stubs/FakeAuthenticationPlugin.php:
--------------------------------------------------------------------------------
1 | status = JAuthentication::STATUS_SUCCESS;
41 | }
42 | }
43 | }
44 |
--------------------------------------------------------------------------------
/tests/suites/unit/joomla/github/stubs/JGithubObjectMock.php:
--------------------------------------------------------------------------------
1 | markTestIncomplete('This test has not been implemented yet.');
31 | }
32 |
33 | /**
34 | * Tests JTableModule::bind
35 | *
36 | * @todo Implement testBind().
37 | *
38 | * @return void
39 | */
40 | public function testBind()
41 | {
42 | // Remove the following lines when you implement this test.
43 | $this->markTestIncomplete('This test has not been implemented yet.');
44 | }
45 | }
46 |
--------------------------------------------------------------------------------
/tests/suites/legacy/model/JModelFormTest.php:
--------------------------------------------------------------------------------
1 | markTestIncomplete('This test has not been implemented yet.');
31 | }
32 |
33 | /**
34 | * Test JModelForm::validate
35 | *
36 | * @todo Implement testValidate().
37 | *
38 | * @return void
39 | */
40 | public function testValidate()
41 | {
42 | // Remove the following lines when you implement this test.
43 | $this->markTestIncomplete('This test has not been implemented yet.');
44 | }
45 | }
46 |
--------------------------------------------------------------------------------
/tests/suites/legacy/categories/JCategoriesTest.php:
--------------------------------------------------------------------------------
1 | markTestIncomplete('This test has not been implemented yet.');
31 | }
32 |
33 | /**
34 | * Test JCategories::get
35 | *
36 | * @todo Implement testGet().
37 | *
38 | * @return void
39 | */
40 | public function testGet()
41 | {
42 | // Remove the following lines when you implement this test.
43 | $this->markTestIncomplete('This test has not been implemented yet.');
44 | }
45 | }
46 |
--------------------------------------------------------------------------------
/libraries/joomla/archive/extractable.php:
--------------------------------------------------------------------------------
1 | getMock(
39 | 'JApplication',
40 | $methods,
41 | // Constructor arguments.
42 | array(),
43 | // Mock class name.
44 | '',
45 | // Call original constructor.
46 | false
47 | );
48 |
49 | $mockObject->input = new JInput;
50 |
51 | return $mockObject;
52 | }
53 | }
54 |
--------------------------------------------------------------------------------
/tests/suites/unit/joomla/form/fields/inspectors/JFormFieldCalendar.php:
--------------------------------------------------------------------------------
1 | {$property};
30 | }
31 |
32 | /**
33 | * Test...
34 | *
35 | * @param string $property The property to set.
36 | * @param mixed $value The value.
37 | *
38 | * @return void
39 | */
40 | public function setProtectedProperty($property, $value)
41 | {
42 | $this->{$property} = $value;
43 | }
44 |
45 | /**
46 | * Test...
47 | *
48 | * @return void
49 | */
50 | public function getInput()
51 | {
52 | parent::getInput();
53 | }
54 | }
55 |
--------------------------------------------------------------------------------
/libraries/joomla/view/base.php:
--------------------------------------------------------------------------------
1 | model = $model;
40 | }
41 |
42 | /**
43 | * Method to escape output.
44 | *
45 | * @param string $output The output to escape.
46 | *
47 | * @return string The escaped output.
48 | *
49 | * @see JView::escape()
50 | * @since 12.1
51 | */
52 | public function escape($output)
53 | {
54 | return $output;
55 | }
56 | }
57 |
--------------------------------------------------------------------------------
/tests/core/mock/controller.php:
--------------------------------------------------------------------------------
1 | getMock(
39 | 'JControllerBase',
40 | $methods,
41 | // Constructor arguments.
42 | array(),
43 | // Mock class name.
44 | '',
45 | // Call original constructor.
46 | false
47 | );
48 |
49 | // TODO Mock the input.
50 | TestReflection::setValue($mockObject, 'input', new JInput);
51 |
52 | return $mockObject;
53 | }
54 | }
55 |
--------------------------------------------------------------------------------
/tests/suites/unit/joomla/application/stubs/JApplicationCliInspector.php:
--------------------------------------------------------------------------------
1 | closed = $code;
40 | }
41 |
42 | /**
43 | * Allows public access to protected method.
44 | *
45 | * @return void
46 | *
47 | * @since 11.3
48 | */
49 | public function doExecute()
50 | {
51 | $this->triggerEvent('JWebDoExecute');
52 | }
53 | }
54 |
--------------------------------------------------------------------------------
/tests/suites/unit/joomla/form/JFormRuleTest.php:
--------------------------------------------------------------------------------
1 | object = new JFormRule;
40 | }
41 |
42 | /**
43 | * Test...
44 | *
45 | * @todo Implement testTest().
46 | *
47 | * @return void
48 | */
49 | public function testTest()
50 | {
51 | // Remove the following lines when you implement this test.
52 | $this->markTestIncomplete('This test has not been implemented yet.');
53 | }
54 | }
55 |
--------------------------------------------------------------------------------
/media/system/js/multiselect.js:
--------------------------------------------------------------------------------
1 | /**
2 | * @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
3 | * @license GNU General Public License version 2 or later; see LICENSE.txt
4 | */
5 |
6 | /**
7 | * JavaScript behavior to allow shift select in administrator grids
8 | */
9 | (function() {
10 | Joomla = Joomla || {};
11 |
12 | Joomla.JMultiSelect = new Class({
13 | initialize : function(table) {
14 | this.table = document.id(table);
15 | if (this.table) {
16 | this.boxes = this.table.getElements('input[type=checkbox]');
17 | this.boxes.addEvent('click', function(e){
18 | this.doselect(e);
19 | }.bind(this));
20 | }
21 | },
22 |
23 | doselect: function(e) {
24 | var current = document.id(e.target);
25 | if (e.shift && typeOf(this.last) !== 'null') {
26 | var checked = current.getProperty('checked') ? 'checked' : '';
27 | var range = [this.boxes.indexOf(current), this.boxes.indexOf(this.last)].sort(function(a, b) {
28 | //Shorthand to make sort() sort numerical instead of lexicographic
29 | return a-b;
30 | });
31 | for (var i=range[0]; i <= range[1]; i++) {
32 | this.boxes[i].setProperty('checked', checked);
33 | }
34 | }
35 | this.last = current;
36 | }
37 | });
38 | })();
39 |
--------------------------------------------------------------------------------
/libraries/joomla/data/dumpable.php:
--------------------------------------------------------------------------------
1 | _doc->loadRenderer('module');
35 | $buffer = '';
36 |
37 | foreach (JModuleHelper::getModules($position) as $mod)
38 | {
39 | $buffer .= $renderer->render($mod, $params, $content);
40 | }
41 | return $buffer;
42 | }
43 | }
44 |
--------------------------------------------------------------------------------
/tests/suites/unit/joomla/feed/stubs/JFeedParserMock.php:
--------------------------------------------------------------------------------
1 | handle, IMG_FILTER_SMOOTH, $options[IMG_FILTER_SMOOTH]);
41 | }
42 | }
43 |
--------------------------------------------------------------------------------
/media/system/js/switcher.js:
--------------------------------------------------------------------------------
1 | var JSwitcher=new Class({Implements:[Options,Events],togglers:null,elements:null,current:null,options:{onShow:function(){},onHide:function(){},cookieName:"switcher",togglerSelector:"a",elementSelector:"div.tab",elementPrefix:"page-"},initialize:function(c,b,a){this.setOptions(a);this.togglers=document.id(c).getElements(this.options.togglerSelector);this.elements=document.id(b).getElements(this.options.elementSelector);if((this.togglers.length==0)||(this.togglers.length!=this.elements.length)){return}this.hideAll();this.togglers.each(function(e){e.addEvent("click",this.display.bind(this,e.id))}.bind(this));var d=[Cookie.read(this.options.cookieName),this.togglers[0].id].pick();this.display(d)},display:function(a){var c=document.id(a);var b=document.id(this.options.elementPrefix+a);if(c==null||b==null||c==this.current){return this}if(this.current!=null){this.hide(document.id(this.options.elementPrefix+this.current));document.id(this.current).removeClass("active")}this.show(b);c.addClass("active");this.current=c.id;Cookie.write(this.options.cookieName,this.current)},hide:function(a){this.fireEvent("hide",a);a.setStyle("display","none")},hideAll:function(){this.elements.setStyle("display","none");this.togglers.removeClass("active")},show:function(a){this.fireEvent("show",a);a.setStyle("display","block")}});
--------------------------------------------------------------------------------
/tests/suites/unit/joomla/html/html/testfiles/inspector.php:
--------------------------------------------------------------------------------
1 | getMock(
41 | 'JApplicationCli',
42 | $methods,
43 | // Constructor arguments.
44 | array(),
45 | // Mock class name.
46 | '',
47 | // Call original constructor.
48 | true
49 | );
50 |
51 | return $mockObject;
52 | }
53 | }
54 |
--------------------------------------------------------------------------------
/libraries/joomla/image/filter/contrast.php:
--------------------------------------------------------------------------------
1 | handle, IMG_FILTER_CONTRAST, $options[IMG_FILTER_CONTRAST]);
41 | }
42 | }
43 |
--------------------------------------------------------------------------------
/tests/suites/unit/joomla/session/storage/JSessionStorageNoneTest.php:
--------------------------------------------------------------------------------
1 | object = JSessionStorage::getInstance('None');
38 | }
39 |
40 | /**
41 | * Test JSessionStorageNone::Register().
42 | *
43 | * @return void
44 | */
45 | public function testRegister()
46 | {
47 | $this->assertThat(
48 | $this->object->register(),
49 | $this->equalTo(null)
50 | );
51 | }
52 | }
53 |
--------------------------------------------------------------------------------
/docs/manual/en-US/coding-standards/preface.md:
--------------------------------------------------------------------------------
1 | # Preface
2 |
3 | One of the things that sets good software apart from great software is not the features or the actual function the software performs, but the quality of the source code. In order to perform in the highly competitive Open Source and proprietary software industries, the source code not only needs to be beautifully designed, it also needs to be beautiful and elegant to look at.
4 |
5 | Readable code is maintainable code and the compass that guides us in achieving that goal is a set of well thought out coding standards for the different software languages that are employed in our software project. Joomla has a solid heritage of striving to support a great looking product with great looking code. This document compiles the collective wisdom of past and present contributors to the project to form the definitive standard for coding in Joomla, whether that is for the core Joomla Platform or an extension that forms part of the stack of the Joomla CMS. It also serves as a lighthouse to the Joomla developer community, to safely guide developers around the pitfalls of becoming lackadaisical with respect to writing clean, beautiful code.
6 |
7 | The Joomla Coding Standards borrows heavily from the PEAR coding standard for PHP files, augmenting and diverging where it is deemed sensible to do so.
8 |
--------------------------------------------------------------------------------
/libraries/joomla/utilities/utility.php:
--------------------------------------------------------------------------------
1 | object = new JInputCookie;
38 | }
39 |
40 | /**
41 | * Test...
42 | *
43 | * @todo Implement testSet().
44 | *
45 | * @return void
46 | */
47 | public function testSet()
48 | {
49 | // Remove the following lines when you implement this test.
50 | $this->markTestIncomplete(
51 | 'This test has not been implemented yet.'
52 | );
53 | }
54 |
55 | }
56 |
--------------------------------------------------------------------------------
/libraries/joomla/image/filter/brightness.php:
--------------------------------------------------------------------------------
1 | handle, IMG_FILTER_BRIGHTNESS, $options[IMG_FILTER_BRIGHTNESS]);
41 | }
42 | }
43 |
--------------------------------------------------------------------------------
/tests/suites/unit/joomla/form/example.xml:
--------------------------------------------------------------------------------
1 |
2 |
48 |
--------------------------------------------------------------------------------
/tests/suites/unit/joomla/oauth1/stubs/JOAuth1ClientInspector.php:
--------------------------------------------------------------------------------
1 | token['key'], 'valid'))
30 | {
31 | return true;
32 | }
33 |
34 | return false;
35 | }
36 |
37 | /**
38 | * Method to validate a response.
39 | *
40 | * @param string $url The request URL.
41 | * @param JHttpResponse $response The response to validate.
42 | *
43 | * @return void
44 | *
45 | * @since 13.1
46 | * @throws DomainException
47 | */
48 | public function validateResponse($url, $response)
49 | {
50 | if ($response->code < 200 || $response->code > 399)
51 | {
52 | throw new DomainException($response->body);
53 | }
54 | }
55 | }
56 |
--------------------------------------------------------------------------------
/tests/core/mock/document.php:
--------------------------------------------------------------------------------
1 | getMock(
37 | 'JDocument',
38 | $methods,
39 | // Constructor arguments.
40 | array(),
41 | // Mock class name.
42 | '',
43 | // Call original constructor.
44 | false
45 | );
46 |
47 | // Mock selected methods.
48 | $test->assignMockReturns(
49 | $mockObject, array(
50 | 'parse' => $mockObject,
51 | // An additional 'test' method for confirming this object is successfully mocked.
52 | 'test' => 'ok'
53 | )
54 | );
55 |
56 | return $mockObject;
57 | }
58 | }
59 |
--------------------------------------------------------------------------------
/tests/suites/unit/joomla/document/feed/JFeedItemTest.php:
--------------------------------------------------------------------------------
1 | object = new JFeedItem;
38 | }
39 |
40 | /**
41 | * Test...
42 | *
43 | * @todo Implement testSetEnclosure().
44 | *
45 | * @return void
46 | */
47 | public function testSetEnclosure()
48 | {
49 | // Remove the following lines when you implement this test.
50 | $this->markTestIncomplete(
51 | 'This test has not been implemented yet.'
52 | );
53 | }
54 |
55 | }
56 |
--------------------------------------------------------------------------------
/libraries/legacy/model/item.php:
--------------------------------------------------------------------------------
1 | markTestIncomplete('This test has not been implemented yet.');
34 | }
35 |
36 | /**
37 | * Test...
38 | *
39 | * @covers JTableAsset::check
40 | * @todo Implement testCheck().
41 | *
42 | * @return void
43 | */
44 | public function testCheck()
45 | {
46 | // Remove the following lines when you implement this test.
47 | $this->markTestIncomplete('This test has not been implemented yet.');
48 | }
49 | }
50 |
--------------------------------------------------------------------------------
/tests/suites/unit/joomla/table/JTableViewlevelTest.php:
--------------------------------------------------------------------------------
1 | markTestIncomplete('This test has not been implemented yet.');
34 | }
35 |
36 | /**
37 | * Test...
38 | *
39 | * @covers JTableViewlevel::check
40 | * @todo Implement testCheck().
41 | *
42 | * @return void
43 | */
44 | public function testCheck()
45 | {
46 | // Remove the following lines when you implement this test.
47 | $this->markTestIncomplete('This test has not been implemented yet.');
48 | }
49 | }
50 |
--------------------------------------------------------------------------------
/tests/suites/unit/joomla/data/stubs/vostok.php:
--------------------------------------------------------------------------------
1 | element->addAttribute('filter', $filter);
47 |
48 | // Get the field options.
49 | return parent::getOptions();
50 | }
51 | }
52 |
--------------------------------------------------------------------------------
/libraries/joomla/document/raw/raw.php:
--------------------------------------------------------------------------------
1 | _mime = 'text/html';
34 |
35 | // Set document type
36 | $this->_type = 'raw';
37 | }
38 |
39 | /**
40 | * Render the document.
41 | *
42 | * @param boolean $cache If true, cache the output
43 | * @param array $params Associative array of attributes
44 | *
45 | * @return The rendered data
46 | *
47 | * @since 11.1
48 | */
49 | public function render($cache = false, $params = array())
50 | {
51 | parent::render();
52 |
53 | return $this->getBuffer();
54 | }
55 | }
56 |
--------------------------------------------------------------------------------
/tests/suites/unit/joomla/database/JDatabaseQueryInspector.php:
--------------------------------------------------------------------------------
1 | $property = $value;
35 | }
36 |
37 | /**
38 | * Gets any property from the class.
39 | *
40 | * @param string $property The name of the class property.
41 | *
42 | * @return mixed The value of the class property.
43 | *
44 | * @since 11.1
45 | */
46 | public function get($property)
47 | {
48 | return $this->$property;
49 | }
50 | }
51 |
--------------------------------------------------------------------------------
/libraries/joomla/feed/person.php:
--------------------------------------------------------------------------------
1 | name = $name;
58 | $this->email = $email;
59 | $this->uri = $uri;
60 | $this->type = $type;
61 | }
62 | }
63 |
--------------------------------------------------------------------------------
/libraries/joomla/controller/controller.php:
--------------------------------------------------------------------------------
1 | name array.
45 | foreach (JCache::getStores() as $store)
46 | {
47 | $options[] = JHtml::_('select.option', $store, JText::_('JLIB_FORM_VALUE_CACHE_' . $store), 'value', 'text');
48 | }
49 |
50 | $options = array_merge(parent::getOptions(), $options);
51 |
52 | return $options;
53 | }
54 | }
55 |
--------------------------------------------------------------------------------