This commit is contained in:
Xes
2025-08-14 22:41:49 +02:00
parent 2de81ccc46
commit 8ce45119b6
39774 changed files with 4309466 additions and 0 deletions

5
vendor/swftools/swftools/.gitignore vendored Normal file
View File

@@ -0,0 +1,5 @@
/nbproject
/vendor
/tests/phpunit_report
/docs/build
composer.phar

13
vendor/swftools/swftools/.travis.yml vendored Normal file
View File

@@ -0,0 +1,13 @@
language: php
before_script:
- sudo apt-get update
- sudo apt-get install -y libfreetype6-dev libjpeg-dev libgif-dev libpng-dev xpdf libexpat-dev gettext zlib1g-dev build-essential
- wget http://www.swftools.org/swftools-0.9.1.tar.gz
- sh -c "tar xzvf swftools-0.9.1.tar.gz && cd swftools-0.9.1 && ./configure && make && sudo make install"
- composer install --dev --prefer-source
php:
- 5.4
- 5.5

31
vendor/swftools/swftools/CHANGELOG.md vendored Normal file
View File

@@ -0,0 +1,31 @@
CHANGELOG
---------
* 0.3.1 (07-03-2013)
* Ensure that exceptions thrown are in SwfTools namespace.
* Remove Monolog as a dependency.
* 0.3.0 (06-25-2013)
* BC Break : FlashFile and PDFFile are now services.
* BC Break : Simplification of service provider configuration.
* 0.2.1 (04-23-2013)
* Code cleanup
* Use a dedicated TestCase for all unit tests
* Documentation API update
* 0.2.0 (04-22-2013)
* Add support for underlying processes timeout.
* Deprecate the use of Pdf2Swf::toSwf `$timelimit` parameter
* 0.1.1 (02-11-2013)
* Adjust composer dependencies with tilde operator, allow larger range of versions.
* 0.1.0 (12-21-2012)
* First stable version.

18
vendor/swftools/swftools/LICENSE vendored Normal file
View File

@@ -0,0 +1,18 @@
MIT License
Copyright (c) 2012 Alchemy
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"),
to deal in the Software without restriction, including without limitation
the rights to use, copy, modify, merge, publish, distribute, sublicense,
and/or sell copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following conditions:
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
IN THE SOFTWARE.

108
vendor/swftools/swftools/README.md vendored Normal file
View File

@@ -0,0 +1,108 @@
#PHP Swftools
[![Build Status](https://secure.travis-ci.org/alchemy-fr/PHPSwftools.png?branch=master)](http://travis-ci.org/alchemy-fr/PHPSwftools)
PHP Swftools is a tiny lib which help you to use SWFTools http://www.swftools.org/
SWFTools are GPL licensed and are described as "a collection of utilities for
working with Adobe Flash files"
Documentation available at http://php-swftools.readthedocs.org/
## Installation
It is recommended to install PHP-Swftools through
[Composer](http://getcomposer.org) :
```json
{
"require": {
"swftools/swftools": "~0.1.0"
}
}
```
##Dependencies :
In order to use PHP SwfTools, you need to install SWFTools. Depending of your
configuration, please follow the instructions at
http://wiki.swftools.org/wiki/Installation.
##Main API usage :
```php
$file = new SwfTools\FlashFile(SwfTools\Binary\DriverContainer::create());
// Render the animation to a PNG file
$file->render('Animation.swf', 'renderedAnimation.png');
// List all embedded object found in the animation.
// Available object types are : Shapes, Fonts, PNGs, JPEGs, Frames, MovieClip
foreach($File->listEmbeddedObjects('Animation.swf') as $embeddedObject) {
echo sprintf("found an object type %s with id %d\n", $embeddedObject->getType(), $embeddedObject->getId());
}
// Extract embedded Object #1
$file->extractEmbedded(1, 'Animation.swf', 'Object1.png');
// Extract the first embedded image found
$file->extractFirstImage('Animation.swf', 'renderedAnimation.jpg');
```
##Setting timeout
PHPSwfTools uses underlying processes to execute commands. You can set a timeout
to prevent these processes to run more than a defined duration.
To disable timeout, set it to `0` (default value).
```php
$file = new SwfTools\FlashFile(SwfTools\Binary\DriverContainer::create(
'timeout' => 0,
));
```
##Using various binaries versions
PHPSwfTools uses ``swfextract`` an ``swfrender`` provided by SWFTools. If you
want to specify the path to the binary you wnat to use, you can add
configuration :
```php
$file = new SwfTools\FlashFile(SwfTools\Binary\DriverContainer::create(
'pdf2swf.binaries' => '/opt/local/swftools/bin/pdf2swf',
'swfrender.binaries' => '/opt/local/swftools/bin/swfrender',
'swfextract.binaries' => '/opt/local/swftools/bin/swfextract',
));
```
## Silex Service Provider
PHP-Swtools provides a [Silex](http://silex.sensiolabs.org) service provider.
Every option is optional, use them depending of your configuration. By default,
PHP-Swftools will try to find the executable in the environment PATH and timeout
is set to 0 (no timeout).
```php
$app = new Silex\Application();
$app->register(new SwfTools\SwfToolsServiceProvider(), array(
'swftools.configuration' => array(
'pdf2swf.binaries' => '/opt/local/swftools/bin/pdf2swf',
'swfrender.binaries' => '/opt/local/swftools/bin/swfrender',
'swfextract.binaries' => '/opt/local/swftools/bin/swfextract',
'timeout' => 300,
),
'swftools.logger' => $app->share(function (Application $app) {
return $app['monolog'];
});
));
$app['swftools.flash-file']->render('file.swf', 'output.jpg');
$app['swftools.pdf-file']->toSwf('output.swf');
```
##License
PHPSwftools are released under MIT License http://opensource.org/licenses/MIT
See LICENSE file for more information

5
vendor/swftools/swftools/buildAPI.sh vendored Normal file
View File

@@ -0,0 +1,5 @@
#!/bin/bash
rm -Rf docs/source/API/API
/usr/bin/env php vendor/bin/sami.php update sami_configuration.php -v
sh -c "cd docs && make clean && make html"

34
vendor/swftools/swftools/composer.json vendored Normal file
View File

@@ -0,0 +1,34 @@
{
"name": "swftools/swftools",
"type": "library",
"description": "PHP SwfTools",
"keywords": ["flash", "swf", "adobe flash"],
"license": "MIT",
"authors": [
{
"name": "Romain Neutron",
"email": "imprec@gmail.com",
"homepage": "http://www.lickmychip.com/"
},
{
"name": "Phraseanet Team",
"email": "support@alchemy.fr",
"homepage": "http://www.phraseanet.com/"
}
],
"require": {
"php" : ">=5.3.3",
"alchemy/binary-driver" : "~1.5",
"pimple/pimple" : "~1.0"
},
"require-dev": {
"phpunit/phpunit" : "~3.7",
"sami/sami" : "~1.0",
"silex/silex" : "~1.0"
},
"autoload": {
"psr-0": {
"SwfTools": "src"
}
}
}

1379
vendor/swftools/swftools/composer.lock generated vendored Normal file

File diff suppressed because it is too large Load Diff

133
vendor/swftools/swftools/docs/Makefile vendored Normal file
View File

@@ -0,0 +1,133 @@
# Makefile for Sphinx documentation
#
# You can set these variables from the command line.
SPHINXOPTS =
SPHINXBUILD = sphinx-build
PAPER =
BUILDDIR = build
# Internal variables.
PAPEROPT_a4 = -D latex_paper_size=a4
PAPEROPT_letter = -D latex_paper_size=letter
ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) source
# the i18n builder cannot share the environment and doctrees with the others
I18NSPHINXOPTS = $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) source
.PHONY: help clean html dirhtml singlehtml pickle json htmlhelp qthelp devhelp epub latex latexpdf text man changes linkcheck doctest gettext
help:
@echo "Please use \`make <target>' where <target> is one of"
@echo " html to make standalone HTML files"
@echo " dirhtml to make HTML files named index.html in directories"
@echo " singlehtml to make a single large HTML file"
@echo " pickle to make pickle files"
@echo " json to make JSON files"
@echo " htmlhelp to make HTML files and a HTML help project"
@echo " epub to make an epub"
@echo " latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter"
@echo " latexpdf to make LaTeX files and run them through pdflatex"
@echo " text to make text files"
@echo " man to make manual pages"
@echo " texinfo to make Texinfo files"
@echo " info to make Texinfo files and run them through makeinfo"
@echo " gettext to make PO message catalogs"
@echo " changes to make an overview of all changed/added/deprecated items"
@echo " linkcheck to check all external links for integrity"
@echo " doctest to run all doctests embedded in the documentation (if enabled)"
clean:
-rm -rf $(BUILDDIR)/*
html:
$(SPHINXBUILD) -W -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
@echo
@echo "Build finished. The HTML pages are in $(BUILDDIR)/html."
dirhtml:
$(SPHINXBUILD) -W -b dirhtml $(ALLSPHINXOPTS) $(BUILDDIR)/dirhtml
@echo
@echo "Build finished. The HTML pages are in $(BUILDDIR)/dirhtml."
singlehtml:
$(SPHINXBUILD) -W -b singlehtml $(ALLSPHINXOPTS) $(BUILDDIR)/singlehtml
@echo
@echo "Build finished. The HTML page is in $(BUILDDIR)/singlehtml."
pickle:
$(SPHINXBUILD) -W -b pickle $(ALLSPHINXOPTS) $(BUILDDIR)/pickle
@echo
@echo "Build finished; now you can process the pickle files."
json:
$(SPHINXBUILD) -W -b json $(ALLSPHINXOPTS) $(BUILDDIR)/json
@echo
@echo "Build finished; now you can process the JSON files."
htmlhelp:
$(SPHINXBUILD) -W -b htmlhelp $(ALLSPHINXOPTS) $(BUILDDIR)/htmlhelp
@echo
@echo "Build finished; now you can run HTML Help Workshop with the" \
".hhp project file in $(BUILDDIR)/htmlhelp."
epub:
$(SPHINXBUILD) -W -b epub $(ALLSPHINXOPTS) $(BUILDDIR)/epub
@echo
@echo "Build finished. The epub file is in $(BUILDDIR)/epub."
latex:
$(SPHINXBUILD) -W -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
@echo
@echo "Build finished; the LaTeX files are in $(BUILDDIR)/latex."
@echo "Run \`make' in that directory to run these through (pdf)latex" \
"(use \`make latexpdf' here to do that automatically)."
latexpdf:
$(SPHINXBUILD) -W -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
@echo "Running LaTeX files through pdflatex..."
$(MAKE) -C $(BUILDDIR)/latex all-pdf
@echo "pdflatex finished; the PDF files are in $(BUILDDIR)/latex."
text:
$(SPHINXBUILD) -W -b text $(ALLSPHINXOPTS) $(BUILDDIR)/text
@echo
@echo "Build finished. The text files are in $(BUILDDIR)/text."
man:
$(SPHINXBUILD) -W -b man $(ALLSPHINXOPTS) $(BUILDDIR)/man
@echo
@echo "Build finished. The manual pages are in $(BUILDDIR)/man."
texinfo:
$(SPHINXBUILD) -W -b texinfo $(ALLSPHINXOPTS) $(BUILDDIR)/texinfo
@echo
@echo "Build finished. The Texinfo files are in $(BUILDDIR)/texinfo."
@echo "Run \`make' in that directory to run these through makeinfo" \
"(use \`make info' here to do that automatically)."
info:
$(SPHINXBUILD) -W -b texinfo $(ALLSPHINXOPTS) $(BUILDDIR)/texinfo
@echo "Running Texinfo files through makeinfo..."
make -C $(BUILDDIR)/texinfo info
@echo "makeinfo finished; the Info files are in $(BUILDDIR)/texinfo."
gettext:
$(SPHINXBUILD) -W -b gettext $(I18NSPHINXOPTS) $(BUILDDIR)/locale
@echo
@echo "Build finished. The message catalogs are in $(BUILDDIR)/locale."
changes:
$(SPHINXBUILD) -W -b changes $(ALLSPHINXOPTS) $(BUILDDIR)/changes
@echo
@echo "The overview file is in $(BUILDDIR)/changes."
linkcheck:
$(SPHINXBUILD) -W -b linkcheck $(ALLSPHINXOPTS) $(BUILDDIR)/linkcheck
@echo
@echo "Link check complete; look for any errors in the above output " \
"or in $(BUILDDIR)/linkcheck/output.txt."
doctest:
$(SPHINXBUILD) -W -b doctest $(ALLSPHINXOPTS) $(BUILDDIR)/doctest
@echo "Testing of doctests in the sources finished, look at the " \
"results in $(BUILDDIR)/doctest/output.txt."

176
vendor/swftools/swftools/docs/make.bat vendored Normal file
View File

@@ -0,0 +1,176 @@
@ECHO OFF
REM Command file for Sphinx documentation
if "%SPHINXBUILD%" == "" (
set SPHINXBUILD=sphinx-build
)
set BUILDDIR=build
set ALLSPHINXOPTS=-d %BUILDDIR%/doctrees %SPHINXOPTS% source
set I18NSPHINXOPTS=%SPHINXOPTS% source
if NOT "%PAPER%" == "" (
set ALLSPHINXOPTS=-D latex_paper_size=%PAPER% %ALLSPHINXOPTS%
set I18NSPHINXOPTS=-D latex_paper_size=%PAPER% %I18NSPHINXOPTS%
)
if "%1" == "" goto help
if "%1" == "help" (
:help
echo.Please use `make ^<target^>` where ^<target^> is one of
echo. html to make standalone HTML files
echo. dirhtml to make HTML files named index.html in directories
echo. singlehtml to make a single large HTML file
echo. pickle to make pickle files
echo. json to make JSON files
echo. htmlhelp to make HTML files and a HTML help project
echo. epub to make an epub
echo. latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter
echo. text to make text files
echo. man to make manual pages
echo. texinfo to make Texinfo files
echo. gettext to make PO message catalogs
echo. changes to make an overview over all changed/added/deprecated items
echo. linkcheck to check all external links for integrity
echo. doctest to run all doctests embedded in the documentation if enabled
goto end
)
if "%1" == "clean" (
for /d %%i in (%BUILDDIR%\*) do rmdir /q /s %%i
del /q /s %BUILDDIR%\*
goto end
)
if "%1" == "html" (
%SPHINXBUILD% -b html %ALLSPHINXOPTS% %BUILDDIR%/html
if errorlevel 1 exit /b 1
echo.
echo.Build finished. The HTML pages are in %BUILDDIR%/html.
goto end
)
if "%1" == "dirhtml" (
%SPHINXBUILD% -b dirhtml %ALLSPHINXOPTS% %BUILDDIR%/dirhtml
if errorlevel 1 exit /b 1
echo.
echo.Build finished. The HTML pages are in %BUILDDIR%/dirhtml.
goto end
)
if "%1" == "singlehtml" (
%SPHINXBUILD% -b singlehtml %ALLSPHINXOPTS% %BUILDDIR%/singlehtml
if errorlevel 1 exit /b 1
echo.
echo.Build finished. The HTML pages are in %BUILDDIR%/singlehtml.
goto end
)
if "%1" == "pickle" (
%SPHINXBUILD% -b pickle %ALLSPHINXOPTS% %BUILDDIR%/pickle
if errorlevel 1 exit /b 1
echo.
echo.Build finished; now you can process the pickle files.
goto end
)
if "%1" == "json" (
%SPHINXBUILD% -b json %ALLSPHINXOPTS% %BUILDDIR%/json
if errorlevel 1 exit /b 1
echo.
echo.Build finished; now you can process the JSON files.
goto end
)
if "%1" == "htmlhelp" (
%SPHINXBUILD% -b htmlhelp %ALLSPHINXOPTS% %BUILDDIR%/htmlhelp
if errorlevel 1 exit /b 1
echo.
echo.Build finished; now you can run HTML Help Workshop with the ^
.hhp project file in %BUILDDIR%/htmlhelp.
goto end
)
if "%1" == "devhelp" (
%SPHINXBUILD% -b devhelp %ALLSPHINXOPTS% %BUILDDIR%/devhelp
if errorlevel 1 exit /b 1
echo.
echo.Build finished.
goto end
)
if "%1" == "epub" (
%SPHINXBUILD% -b epub %ALLSPHINXOPTS% %BUILDDIR%/epub
if errorlevel 1 exit /b 1
echo.
echo.Build finished. The epub file is in %BUILDDIR%/epub.
goto end
)
if "%1" == "latex" (
%SPHINXBUILD% -b latex %ALLSPHINXOPTS% %BUILDDIR%/latex
if errorlevel 1 exit /b 1
echo.
echo.Build finished; the LaTeX files are in %BUILDDIR%/latex.
goto end
)
if "%1" == "text" (
%SPHINXBUILD% -b text %ALLSPHINXOPTS% %BUILDDIR%/text
if errorlevel 1 exit /b 1
echo.
echo.Build finished. The text files are in %BUILDDIR%/text.
goto end
)
if "%1" == "man" (
%SPHINXBUILD% -b man %ALLSPHINXOPTS% %BUILDDIR%/man
if errorlevel 1 exit /b 1
echo.
echo.Build finished. The manual pages are in %BUILDDIR%/man.
goto end
)
if "%1" == "texinfo" (
%SPHINXBUILD% -b texinfo %ALLSPHINXOPTS% %BUILDDIR%/texinfo
if errorlevel 1 exit /b 1
echo.
echo.Build finished. The Texinfo files are in %BUILDDIR%/texinfo.
goto end
)
if "%1" == "gettext" (
%SPHINXBUILD% -b gettext %I18NSPHINXOPTS% %BUILDDIR%/locale
if errorlevel 1 exit /b 1
echo.
echo.Build finished. The message catalogs are in %BUILDDIR%/locale.
goto end
)
if "%1" == "changes" (
%SPHINXBUILD% -b changes %ALLSPHINXOPTS% %BUILDDIR%/changes
if errorlevel 1 exit /b 1
echo.
echo.The overview file is in %BUILDDIR%/changes.
goto end
)
if "%1" == "linkcheck" (
%SPHINXBUILD% -b linkcheck %ALLSPHINXOPTS% %BUILDDIR%/linkcheck
if errorlevel 1 exit /b 1
echo.
echo.Link check complete; look for any errors in the above output ^
or in %BUILDDIR%/linkcheck/output.txt.
goto end
)
if "%1" == "doctest" (
%SPHINXBUILD% -b doctest %ALLSPHINXOPTS% %BUILDDIR%/doctest
if errorlevel 1 exit /b 1
echo.
echo.Testing of doctests in the sources finished, look at the ^
results in %BUILDDIR%/doctest/output.txt.
goto end
)
:end

View File

View File

@@ -0,0 +1 @@
master

View File

@@ -0,0 +1 @@
0.8.1-DEV

View File

@@ -0,0 +1,46 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="robots" content="index, follow, all" />
<title>SwfTools | PHP-SwfTools API</title>
<link rel="stylesheet" type="text/css" href="stylesheet.css">
</head>
<body id="overview">
<div class="header">
<ul>
<li><a href="classes.html">Classes</a></li>
<li><a href="namespaces.html">Namespaces</a></li>
<li><a href="interfaces.html">Interfaces</a></li>
<li><a href="doc-index.html">Index</a></li>
</ul>
<div id="title">PHP-SwfTools API</div>
<div class="type">Namespace</div>
<h1>SwfTools</h1>
</div>
<div class="content">
<table>
<tr>
<td><a href="SwfTools/Configuration.html"><abbr title="SwfTools\Configuration">Configuration</abbr></a></td>
<td class="last"></td>
</tr>
<tr>
<td><a href="SwfTools/EmbeddedObject.html"><abbr title="SwfTools\EmbeddedObject">EmbeddedObject</abbr></a></td>
<td class="last"></td>
</tr>
<tr>
<td><a href="SwfTools/SwfToolsServiceProvider.html"><abbr title="SwfTools\SwfToolsServiceProvider">SwfToolsServiceProvider</abbr></a></td>
<td class="last"></td>
</tr>
</table>
</div>
<div id="footer">
Generated by <a href="http://sami.sensiolabs.org/" target="_top">Sami, the API Documentation Generator</a>.
</div>
</body>
</html>

View File

@@ -0,0 +1,57 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="robots" content="index, follow, all" />
<title>SwfTools\Binary | PHP-SwfTools API</title>
<link rel="stylesheet" type="text/css" href="../stylesheet.css">
</head>
<body id="overview">
<div class="header">
<ul>
<li><a href="../classes.html">Classes</a></li>
<li><a href="../namespaces.html">Namespaces</a></li>
<li><a href="../interfaces.html">Interfaces</a></li>
<li><a href="../doc-index.html">Index</a></li>
</ul>
<div id="title">PHP-SwfTools API</div>
<div class="type">Namespace</div>
<h1>SwfTools\Binary</h1>
</div>
<div class="content">
<table>
<tr>
<td><a href="../SwfTools/Binary/Binary.html"><abbr title="SwfTools\Binary\Binary">Binary</abbr></a></td>
<td class="last">The abstract binary adapter</td>
</tr>
<tr>
<td><a href="../SwfTools/Binary/Pdf2swf.html"><abbr title="SwfTools\Binary\Pdf2swf">Pdf2swf</abbr></a></td>
<td class="last">The Pdf2Swf adapter</td>
</tr>
<tr>
<td><a href="../SwfTools/Binary/Swfextract.html"><abbr title="SwfTools\Binary\Swfextract">Swfextract</abbr></a></td>
<td class="last"></td>
</tr>
<tr>
<td><a href="../SwfTools/Binary/Swfrender.html"><abbr title="SwfTools\Binary\Swfrender">Swfrender</abbr></a></td>
<td class="last"></td>
</tr>
</table>
<h2>Interfaces</h2>
<table>
<tr>
<td><a href="../SwfTools/Binary/AdapterInterface.html"><abbr title="SwfTools\Binary\AdapterInterface">AdapterInterface</abbr></a></td>
<td class="last">The adapter interface.</td>
</tr>
</table>
</div>
<div id="footer">
Generated by <a href="http://sami.sensiolabs.org/" target="_top">Sami, the API Documentation Generator</a>.
</div>
</body>
</html>

View File

@@ -0,0 +1,124 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="robots" content="index, follow, all" />
<title>SwfTools\Binary\AdapterInterface | PHP-SwfTools API</title>
<link rel="stylesheet" type="text/css" href="../../stylesheet.css">
</head>
<body id="class">
<div class="header">
<ul>
<li><a href="../../classes.html">Classes</a></li>
<li><a href="../../namespaces.html">Namespaces</a></li>
<li><a href="../../interfaces.html">Interfaces</a></li>
<li><a href="../../doc-index.html">Index</a></li>
</ul>
<div id="title">PHP-SwfTools API</div>
<div class="type">Interface</div>
<h1><a href="../../SwfTools/Binary.html">SwfTools\Binary</a>\AdapterInterface</h1>
</div>
<div class="content">
<p>interface <strong>AdapterInterface</strong></p>
<div class="description">
<p>The adapter interface.</p>
<p>SwfTools binaries adapters should implement this<br />
interface</p>
</div>
<h2>Methods</h2>
<table>
<tr>
<td class="type">
string
</td>
<td class="last">
<a href="#method_getVersion">getVersion</a>()
<p>Return the version of the binary adapter</p>
</td>
<td></td>
</tr>
<tr>
<td class="type">
static&nbsp;
</td>
<td class="last">
<a href="#method_load">load</a>(<a href="../../SwfTools/Configuration.html"><abbr title="SwfTools\Configuration">Configuration</abbr></a> $configuration, <abbr title="Monolog\Logger">Logger</abbr> $logger)
<p>Load the binary adapter.</p>
</td>
<td></td>
</tr>
</table>
<h2>Details</h2>
<h3 id="method_getVersion">
<div class="location">at line 28</div>
<code> public string
<strong>getVersion</strong>()</code>
</h3>
<div class="details">
<p>Return the version of the binary adapter</p>
<p></p>
<div class="tags">
<h4>Return Value</h4>
<table>
<tr>
<td>string</td>
<td>The version of the binary adapter</td>
</tr>
</table>
</div>
</div>
<h3 id="method_load">
<div class="location">at line 37</div>
<code> static public
<strong>load</strong>(<a href="../../SwfTools/Configuration.html"><abbr title="SwfTools\Configuration">Configuration</abbr></a> $configuration, <abbr title="Monolog\Logger">Logger</abbr> $logger)</code>
</h3>
<div class="details">
<p>Load the binary adapter.</p>
<p>If the configuration contains a parameter, use<br />
it as pathfile, otherwise, autodetect the binary</p>
<div class="tags">
<h4>Parameters</h4>
<table>
<tr>
<td><a href="../../SwfTools/Configuration.html"><abbr title="SwfTools\Configuration">Configuration</abbr></a></td>
<td>$configuration</td>
<td></td>
</tr>
<tr>
<td><abbr title="Monolog\Logger">Logger</abbr></td>
<td>$logger</td>
<td>A logger</td>
</tr>
</table>
</div>
</div>
</div>
<div id="footer">
Generated by <a href="http://sami.sensiolabs.org/" target="_top">Sami, the API Documentation Generator</a>.
</div>
</body>
</html>

View File

@@ -0,0 +1,224 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="robots" content="index, follow, all" />
<title>SwfTools\Binary\Binary | PHP-SwfTools API</title>
<link rel="stylesheet" type="text/css" href="../../stylesheet.css">
</head>
<body id="class">
<div class="header">
<ul>
<li><a href="../../classes.html">Classes</a></li>
<li><a href="../../namespaces.html">Namespaces</a></li>
<li><a href="../../interfaces.html">Interfaces</a></li>
<li><a href="../../doc-index.html">Index</a></li>
</ul>
<div id="title">PHP-SwfTools API</div>
<div class="type">Class</div>
<h1><a href="../../SwfTools/Binary.html">SwfTools\Binary</a>\Binary</h1>
</div>
<div class="content">
<p>abstract class <strong>Binary</strong> implements
<a href="../../SwfTools/Binary/AdapterInterface.html"><abbr title="SwfTools\Binary\AdapterInterface">AdapterInterface</abbr></a></p>
<div class="description">
<p>The abstract binary adapter</p>
<p></p>
</div>
<h2>Methods</h2>
<table>
<tr>
<td class="type">
</td>
<td class="last">
<a href="#method___construct">__construct</a>(<abbr title="SwfTools\Binary\type">type</abbr> $binaryPathname, <abbr title="Monolog\Logger">Logger</abbr> $logger, integer $timeout)
<p>The path to the binary</p>
</td>
<td></td>
</tr>
<tr>
<td class="type">
<a href="../../SwfTools/Binary/Binary.html"><abbr title="SwfTools\Binary\Binary">Binary</abbr></a>
</td>
<td class="last">
<a href="#method_setTimeout">setTimeout</a>(integer $timeout)
<p>Set the timeout for the underlying processes ; 0 means no timeout</p>
</td>
<td></td>
</tr>
<tr>
<td class="type">
integer
</td>
<td class="last">
<a href="#method_getTimeout">getTimeout</a>()
<p>Get the timeout for the underlyning processes ; 0 means no timeout</p>
</td>
<td></td>
</tr>
<tr>
<td class="type">
string|null
</td>
<td class="last">
<a href="#method_getVersion">getVersion</a>()
<p>Try to get the version of the binary.</p>
</td>
<td></td>
</tr>
</table>
<h2>Details</h2>
<h3 id="method___construct">
<div class="location">at line 50</div>
<code> public
<strong>__construct</strong>(<abbr title="SwfTools\Binary\type">type</abbr> $binaryPathname, <abbr title="Monolog\Logger">Logger</abbr> $logger, integer $timeout)</code>
</h3>
<div class="details">
<p>The path to the binary</p>
<p></p>
<div class="tags">
<h4>Parameters</h4>
<table>
<tr>
<td><abbr title="SwfTools\Binary\type">type</abbr></td>
<td>$binaryPathname</td>
<td>the path to a binary executable</td>
</tr>
<tr>
<td><abbr title="Monolog\Logger">Logger</abbr></td>
<td>$logger</td>
<td>A logger</td>
</tr>
<tr>
<td>integer</td>
<td>$timeout</td>
<td>The timeout for the binary</td>
</tr>
</table>
<h4>Exceptions</h4>
<table>
<tr>
<td><abbr title="BinaryNotFoundException">BinaryNotFoundException</abbr></td>
<td>In case the binary does not exists or is not executable</td>
</tr>
</table>
</div>
</div>
<h3 id="method_setTimeout">
<div class="location">at line 70</div>
<code> public <a href="../../SwfTools/Binary/Binary.html"><abbr title="SwfTools\Binary\Binary">Binary</abbr></a>
<strong>setTimeout</strong>(integer $timeout)</code>
</h3>
<div class="details">
<p>Set the timeout for the underlying processes ; 0 means no timeout</p>
<p></p>
<div class="tags">
<h4>Parameters</h4>
<table>
<tr>
<td>integer</td>
<td>$timeout</td>
<td>The timeout value</td>
</tr>
</table>
<h4>Return Value</h4>
<table>
<tr>
<td><a href="../../SwfTools/Binary/Binary.html"><abbr title="SwfTools\Binary\Binary">Binary</abbr></a></td>
<td></td>
</tr>
</table>
<h4>Exceptions</h4>
<table>
<tr>
<td><a href="http://php.net/InvalidArgumentException"><abbr title="InvalidArgumentException">InvalidArgumentException</abbr></a></td>
<td>In case the timeout value is not valid</td>
</tr>
</table>
</div>
</div>
<h3 id="method_getTimeout">
<div class="location">at line 86</div>
<code> public integer
<strong>getTimeout</strong>()</code>
</h3>
<div class="details">
<p>Get the timeout for the underlyning processes ; 0 means no timeout</p>
<p></p>
<div class="tags">
<h4>Return Value</h4>
<table>
<tr>
<td>integer</td>
<td>The timeout value.</td>
</tr>
</table>
</div>
</div>
<h3 id="method_getVersion">
<div class="location">at line 96</div>
<code> public string|null
<strong>getVersion</strong>()</code>
</h3>
<div class="details">
<p>Try to get the version of the binary.</p>
<p>If the detection fails, return null</p>
<div class="tags">
<h4>Return Value</h4>
<table>
<tr>
<td>string|null</td>
<td>The version of the binary adapter</td>
</tr>
</table>
</div>
</div>
</div>
<div id="footer">
Generated by <a href="http://sami.sensiolabs.org/" target="_top">Sami, the API Documentation Generator</a>.
</div>
</body>
</html>

View File

@@ -0,0 +1,436 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="robots" content="index, follow, all" />
<title>SwfTools\Binary\Pdf2swf | PHP-SwfTools API</title>
<link rel="stylesheet" type="text/css" href="../../stylesheet.css">
</head>
<body id="class">
<div class="header">
<ul>
<li><a href="../../classes.html">Classes</a></li>
<li><a href="../../namespaces.html">Namespaces</a></li>
<li><a href="../../interfaces.html">Interfaces</a></li>
<li><a href="../../doc-index.html">Index</a></li>
</ul>
<div id="title">PHP-SwfTools API</div>
<div class="type">Class</div>
<h1><a href="../../SwfTools/Binary.html">SwfTools\Binary</a>\Pdf2swf</h1>
</div>
<div class="content">
<p>class <strong>Pdf2swf</strong> extends <a href="../../SwfTools/Binary/Binary.html"><abbr title="SwfTools\Binary\Binary">Binary</abbr></a></p>
<div class="description">
<p>The Pdf2Swf adapter</p>
<p></p>
</div>
<h2>Constants</h2>
<table>
<tr>
<td>CONVERT_POLY2BITMAP</td>
<td class="last">
<p><em></em></p>
<p></p>
</td>
</tr>
<tr>
<td>CONVERT_BITMAP</td>
<td class="last">
<p><em></em></p>
<p></p>
</td>
</tr>
<tr>
<td>OPTION_LINKS_DISABLE</td>
<td class="last">
<p><em></em></p>
<p></p>
</td>
</tr>
<tr>
<td>OPTION_LINKS_OPENNEWWINDOW</td>
<td class="last">
<p><em></em></p>
<p></p>
</td>
</tr>
<tr>
<td>OPTION_ZLIB_ENABLE</td>
<td class="last">
<p><em></em></p>
<p></p>
</td>
</tr>
<tr>
<td>OPTION_ZLIB_DISABLE</td>
<td class="last">
<p><em></em></p>
<p></p>
</td>
</tr>
<tr>
<td>OPTION_ENABLE_SIMPLEVIEWER</td>
<td class="last">
<p><em></em></p>
<p></p>
</td>
</tr>
<tr>
<td>OPTION_DISABLE_SIMPLEVIEWER</td>
<td class="last">
<p><em></em></p>
<p></p>
</td>
</tr>
</table>
<h2>Methods</h2>
<table>
<tr>
<td class="type">
</td>
<td class="last">
<a href="#method___construct">__construct</a>(<abbr title="SwfTools\Binary\type">type</abbr> $binaryPathname, <abbr title="Monolog\Logger">Logger</abbr> $logger, integer $timeout)
<p>The path to the binary</p>
</td>
<td><small>from&nbsp;<a href="../../SwfTools/Binary/Binary.html#method___construct"><abbr title="SwfTools\Binary\Binary">Binary</abbr></a></small></td>
</tr>
<tr>
<td class="type">
<a href="../../SwfTools/Binary/Binary.html"><abbr title="SwfTools\Binary\Binary">Binary</abbr></a>
</td>
<td class="last">
<a href="#method_setTimeout">setTimeout</a>(integer $timeout)
<p>Set the timeout for the underlying processes ; 0 means no timeout</p>
</td>
<td><small>from&nbsp;<a href="../../SwfTools/Binary/Binary.html#method_setTimeout"><abbr title="SwfTools\Binary\Binary">Binary</abbr></a></small></td>
</tr>
<tr>
<td class="type">
integer
</td>
<td class="last">
<a href="#method_getTimeout">getTimeout</a>()
<p>Get the timeout for the underlyning processes ; 0 means no timeout</p>
</td>
<td><small>from&nbsp;<a href="../../SwfTools/Binary/Binary.html#method_getTimeout"><abbr title="SwfTools\Binary\Binary">Binary</abbr></a></small></td>
</tr>
<tr>
<td class="type">
string|null
</td>
<td class="last">
<a href="#method_getVersion">getVersion</a>()
<p>Try to get the version of the binary.</p>
</td>
<td><small>from&nbsp;<a href="../../SwfTools/Binary/Binary.html#method_getVersion"><abbr title="SwfTools\Binary\Binary">Binary</abbr></a></small></td>
</tr>
<tr>
<td class="type">
<a href="../../SwfTools/Binary/Pdf2swf.html"><abbr title="SwfTools\Binary\Pdf2swf">Pdf2swf</abbr></a>
</td>
<td class="last">
<a href="#method_toSwf">toSwf</a>(string $pathfile, string $outputFile, array $options = array(), string $convertType = self::CONVERT_POLY2BITMAP, integer $resolution = 72, integer $pageRange = &#039;1-&#039;, integer $frameRate = 15, integer $jpegquality = 75, integer $timelimit = null)
<p></p>
</td>
<td></td>
</tr>
<tr>
<td class="type">
static&nbsp;<a href="../../SwfTools/Binary/Pdf2swf.html"><abbr title="SwfTools\Binary\Pdf2swf">Pdf2swf</abbr></a>
</td>
<td class="last">
<a href="#method_load">load</a>(<a href="../../SwfTools/Configuration.html"><abbr title="SwfTools\Configuration">Configuration</abbr></a> $configuration, <abbr title="Monolog\Logger">Logger</abbr> $logger)
<p>Factory method to build the adapter</p>
</td>
<td></td>
</tr>
</table>
<h2>Details</h2>
<h3 id="method___construct">
<div class="location">in <a href="../../SwfTools/Binary/Binary.html#method___construct"><abbr title="SwfTools\Binary\Binary">Binary</abbr></a> at line 50</div>
<code> public
<strong>__construct</strong>(<abbr title="SwfTools\Binary\type">type</abbr> $binaryPathname, <abbr title="Monolog\Logger">Logger</abbr> $logger, integer $timeout)</code>
</h3>
<div class="details">
<p>The path to the binary</p>
<p></p>
<div class="tags">
<h4>Parameters</h4>
<table>
<tr>
<td><abbr title="SwfTools\Binary\type">type</abbr></td>
<td>$binaryPathname</td>
<td>the path to a binary executable</td>
</tr>
<tr>
<td><abbr title="Monolog\Logger">Logger</abbr></td>
<td>$logger</td>
<td>A logger</td>
</tr>
<tr>
<td>integer</td>
<td>$timeout</td>
<td>The timeout for the binary</td>
</tr>
</table>
<h4>Exceptions</h4>
<table>
<tr>
<td><abbr title="BinaryNotFoundException">BinaryNotFoundException</abbr></td>
<td>In case the binary does not exists or is not executable</td>
</tr>
</table>
</div>
</div>
<h3 id="method_setTimeout">
<div class="location">in <a href="../../SwfTools/Binary/Binary.html#method_setTimeout"><abbr title="SwfTools\Binary\Binary">Binary</abbr></a> at line 70</div>
<code> public <a href="../../SwfTools/Binary/Binary.html"><abbr title="SwfTools\Binary\Binary">Binary</abbr></a>
<strong>setTimeout</strong>(integer $timeout)</code>
</h3>
<div class="details">
<p>Set the timeout for the underlying processes ; 0 means no timeout</p>
<p></p>
<div class="tags">
<h4>Parameters</h4>
<table>
<tr>
<td>integer</td>
<td>$timeout</td>
<td>The timeout value</td>
</tr>
</table>
<h4>Return Value</h4>
<table>
<tr>
<td><a href="../../SwfTools/Binary/Binary.html"><abbr title="SwfTools\Binary\Binary">Binary</abbr></a></td>
<td></td>
</tr>
</table>
<h4>Exceptions</h4>
<table>
<tr>
<td><a href="http://php.net/InvalidArgumentException"><abbr title="InvalidArgumentException">InvalidArgumentException</abbr></a></td>
<td>In case the timeout value is not valid</td>
</tr>
</table>
</div>
</div>
<h3 id="method_getTimeout">
<div class="location">in <a href="../../SwfTools/Binary/Binary.html#method_getTimeout"><abbr title="SwfTools\Binary\Binary">Binary</abbr></a> at line 86</div>
<code> public integer
<strong>getTimeout</strong>()</code>
</h3>
<div class="details">
<p>Get the timeout for the underlyning processes ; 0 means no timeout</p>
<p></p>
<div class="tags">
<h4>Return Value</h4>
<table>
<tr>
<td>integer</td>
<td>The timeout value.</td>
</tr>
</table>
</div>
</div>
<h3 id="method_getVersion">
<div class="location">in <a href="../../SwfTools/Binary/Binary.html#method_getVersion"><abbr title="SwfTools\Binary\Binary">Binary</abbr></a> at line 96</div>
<code> public string|null
<strong>getVersion</strong>()</code>
</h3>
<div class="details">
<p>Try to get the version of the binary.</p>
<p>If the detection fails, return null</p>
<div class="tags">
<h4>Return Value</h4>
<table>
<tr>
<td>string|null</td>
<td>The version of the binary adapter</td>
</tr>
</table>
</div>
</div>
<h3 id="method_toSwf">
<div class="location">at line 50</div>
<code> public <a href="../../SwfTools/Binary/Pdf2swf.html"><abbr title="SwfTools\Binary\Pdf2swf">Pdf2swf</abbr></a>
<strong>toSwf</strong>(string $pathfile, string $outputFile, array $options = array(), string $convertType = self::CONVERT_POLY2BITMAP, integer $resolution = 72, integer $pageRange = &#039;1-&#039;, integer $frameRate = 15, integer $jpegquality = 75, integer $timelimit = null)</code>
</h3>
<div class="details">
<p></p>
<p></p>
<div class="tags">
<h4>Parameters</h4>
<table>
<tr>
<td>string</td>
<td>$pathfile</td>
<td></td>
</tr>
<tr>
<td>string</td>
<td>$outputFile</td>
<td></td>
</tr>
<tr>
<td>array</td>
<td>$options</td>
<td></td>
</tr>
<tr>
<td>string</td>
<td>$convertType</td>
<td></td>
</tr>
<tr>
<td>integer</td>
<td>$resolution</td>
<td></td>
</tr>
<tr>
<td>integer</td>
<td>$pageRange</td>
<td></td>
</tr>
<tr>
<td>integer</td>
<td>$frameRate</td>
<td></td>
</tr>
<tr>
<td>integer</td>
<td>$jpegquality</td>
<td></td>
</tr>
<tr>
<td>integer</td>
<td>$timelimit</td>
<td>The time limit for the process (deprecated)</td>
</tr>
</table>
<h4>Return Value</h4>
<table>
<tr>
<td><a href="../../SwfTools/Binary/Pdf2swf.html"><abbr title="SwfTools\Binary\Pdf2swf">Pdf2swf</abbr></a></td>
<td></td>
</tr>
</table>
<h4>Exceptions</h4>
<table>
<tr>
<td><a href="http://php.net/InvalidArgumentException"><abbr title="InvalidArgumentException">InvalidArgumentException</abbr></a></td>
<td></td>
</tr>
</table>
</div>
</div>
<h3 id="method_load">
<div class="location">at line 138</div>
<code> static public <a href="../../SwfTools/Binary/Pdf2swf.html"><abbr title="SwfTools\Binary\Pdf2swf">Pdf2swf</abbr></a>
<strong>load</strong>(<a href="../../SwfTools/Configuration.html"><abbr title="SwfTools\Configuration">Configuration</abbr></a> $configuration, <abbr title="Monolog\Logger">Logger</abbr> $logger)</code>
</h3>
<div class="details">
<p>Factory method to build the adapter</p>
<p>Either pass a configuration file with the binary settings, or pass an<br />
empty configuration, which will trigger the autodetection</p>
<div class="tags">
<h4>Parameters</h4>
<table>
<tr>
<td><a href="../../SwfTools/Configuration.html"><abbr title="SwfTools\Configuration">Configuration</abbr></a></td>
<td>$configuration</td>
<td>A Configuration</td>
</tr>
<tr>
<td><abbr title="Monolog\Logger">Logger</abbr></td>
<td>$logger</td>
<td>A logger</td>
</tr>
</table>
<h4>Return Value</h4>
<table>
<tr>
<td><a href="../../SwfTools/Binary/Pdf2swf.html"><abbr title="SwfTools\Binary\Pdf2swf">Pdf2swf</abbr></a></td>
<td></td>
</tr>
</table>
<h4>Exceptions</h4>
<table>
<tr>
<td><abbr title="BinaryNotFoundException">BinaryNotFoundException</abbr></td>
<td></td>
</tr>
</table>
</div>
</div>
</div>
<div id="footer">
Generated by <a href="http://sami.sensiolabs.org/" target="_top">Sami, the API Documentation Generator</a>.
</div>
</body>
</html>

View File

@@ -0,0 +1,389 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="robots" content="index, follow, all" />
<title>SwfTools\Binary\Swfextract | PHP-SwfTools API</title>
<link rel="stylesheet" type="text/css" href="../../stylesheet.css">
</head>
<body id="class">
<div class="header">
<ul>
<li><a href="../../classes.html">Classes</a></li>
<li><a href="../../namespaces.html">Namespaces</a></li>
<li><a href="../../interfaces.html">Interfaces</a></li>
<li><a href="../../doc-index.html">Index</a></li>
</ul>
<div id="title">PHP-SwfTools API</div>
<div class="type">Class</div>
<h1><a href="../../SwfTools/Binary.html">SwfTools\Binary</a>\Swfextract</h1>
</div>
<div class="content">
<p>class <strong>Swfextract</strong> extends <a href="../../SwfTools/Binary/Binary.html"><abbr title="SwfTools\Binary\Binary">Binary</abbr></a></p>
<h2>Methods</h2>
<table>
<tr>
<td class="type">
</td>
<td class="last">
<a href="#method___construct">__construct</a>($binaryPathname, <abbr title="Monolog\Logger">Logger</abbr> $logger, $timeout)
<p>The path to the binary</p>
</td>
<td><small>from&nbsp;<a href="../../SwfTools/Binary/Binary.html#method___construct"><abbr title="SwfTools\Binary\Binary">Binary</abbr></a></small></td>
</tr>
<tr>
<td class="type">
<a href="../../SwfTools/Binary/Binary.html"><abbr title="SwfTools\Binary\Binary">Binary</abbr></a>
</td>
<td class="last">
<a href="#method_setTimeout">setTimeout</a>(integer $timeout)
<p>Set the timeout for the underlying processes ; 0 means no timeout</p>
</td>
<td><small>from&nbsp;<a href="../../SwfTools/Binary/Binary.html#method_setTimeout"><abbr title="SwfTools\Binary\Binary">Binary</abbr></a></small></td>
</tr>
<tr>
<td class="type">
integer
</td>
<td class="last">
<a href="#method_getTimeout">getTimeout</a>()
<p>Get the timeout for the underlyning processes ; 0 means no timeout</p>
</td>
<td><small>from&nbsp;<a href="../../SwfTools/Binary/Binary.html#method_getTimeout"><abbr title="SwfTools\Binary\Binary">Binary</abbr></a></small></td>
</tr>
<tr>
<td class="type">
string|null
</td>
<td class="last">
<a href="#method_getVersion">getVersion</a>()
<p>Try to get the version of the binary.</p>
</td>
<td><small>from&nbsp;<a href="../../SwfTools/Binary/Binary.html#method_getVersion"><abbr title="SwfTools\Binary\Binary">Binary</abbr></a></small></td>
</tr>
<tr>
<td class="type">
string|null
</td>
<td class="last">
<a href="#method_listEmbedded">listEmbedded</a>(string $pathfile)
<p>Execute the command to list the embedded objects</p>
</td>
<td></td>
</tr>
<tr>
<td class="type">
string|null
</td>
<td class="last">
<a href="#method_extract">extract</a>(string $pathfile, <a href="../../SwfTools/EmbeddedObject.html"><abbr title="SwfTools\EmbeddedObject">EmbeddedObject</abbr></a> $embedded, string $outputFile)
<p>Execute the command to extract an embedded object from a flash file</p>
</td>
<td></td>
</tr>
<tr>
<td class="type">
static&nbsp;<a href="../../SwfTools/Binary/Swfrender.html"><abbr title="SwfTools\Binary\Swfrender">Swfrender</abbr></a>
</td>
<td class="last">
<a href="#method_load">load</a>(<a href="../../SwfTools/Configuration.html"><abbr title="SwfTools\Configuration">Configuration</abbr></a> $configuration, <abbr title="Monolog\Logger">Logger</abbr> $logger)
<p>Factory method to build the binary</p>
</td>
<td></td>
</tr>
</table>
<h2>Details</h2>
<h3 id="method___construct">
<div class="location">in <a href="../../SwfTools/Binary/Binary.html#method___construct"><abbr title="SwfTools\Binary\Binary">Binary</abbr></a> at line 47</div>
<code> public
<strong>__construct</strong>($binaryPathname, <abbr title="Monolog\Logger">Logger</abbr> $logger, $timeout)</code>
</h3>
<div class="details">
<p>The path to the binary</p>
<p></p>
<div class="tags">
<h4>Parameters</h4>
<table>
<tr>
<td></td>
<td>$binaryPathname</td>
<td></td>
</tr>
<tr>
<td><abbr title="Monolog\Logger">Logger</abbr></td>
<td>$logger</td>
<td></td>
</tr>
<tr>
<td></td>
<td>$timeout</td>
<td></td>
</tr>
</table>
</div>
</div>
<h3 id="method_setTimeout">
<div class="location">in <a href="../../SwfTools/Binary/Binary.html#method_setTimeout"><abbr title="SwfTools\Binary\Binary">Binary</abbr></a> at line 67</div>
<code> public <a href="../../SwfTools/Binary/Binary.html"><abbr title="SwfTools\Binary\Binary">Binary</abbr></a>
<strong>setTimeout</strong>(integer $timeout)</code>
</h3>
<div class="details">
<p>Set the timeout for the underlying processes ; 0 means no timeout</p>
<p></p>
<div class="tags">
<h4>Parameters</h4>
<table>
<tr>
<td>integer</td>
<td>$timeout</td>
<td>The timeout value</td>
</tr>
</table>
<h4>Return Value</h4>
<table>
<tr>
<td><a href="../../SwfTools/Binary/Binary.html"><abbr title="SwfTools\Binary\Binary">Binary</abbr></a></td>
<td></td>
</tr>
</table>
<h4>Exceptions</h4>
<table>
<tr>
<td><a href="http://php.net/InvalidArgumentException"><abbr title="InvalidArgumentException">InvalidArgumentException</abbr></a></td>
<td>In case the timeout value is not valid</td>
</tr>
</table>
</div>
</div>
<h3 id="method_getTimeout">
<div class="location">in <a href="../../SwfTools/Binary/Binary.html#method_getTimeout"><abbr title="SwfTools\Binary\Binary">Binary</abbr></a> at line 83</div>
<code> public integer
<strong>getTimeout</strong>()</code>
</h3>
<div class="details">
<p>Get the timeout for the underlyning processes ; 0 means no timeout</p>
<p></p>
<div class="tags">
<h4>Return Value</h4>
<table>
<tr>
<td>integer</td>
<td>The timeout value.</td>
</tr>
</table>
</div>
</div>
<h3 id="method_getVersion">
<div class="location">in <a href="../../SwfTools/Binary/Binary.html#method_getVersion"><abbr title="SwfTools\Binary\Binary">Binary</abbr></a> at line 93</div>
<code> public string|null
<strong>getVersion</strong>()</code>
</h3>
<div class="details">
<p>Try to get the version of the binary.</p>
<p>If the detection fails, return null</p>
<div class="tags">
<h4>Return Value</h4>
<table>
<tr>
<td>string|null</td>
<td>The version of the binary adapter</td>
</tr>
</table>
</div>
</div>
<h3 id="method_listEmbedded">
<div class="location">at line 31</div>
<code> public string|null
<strong>listEmbedded</strong>(string $pathfile)</code>
</h3>
<div class="details">
<p>Execute the command to list the embedded objects</p>
<p></p>
<div class="tags">
<h4>Parameters</h4>
<table>
<tr>
<td>string</td>
<td>$pathfile</td>
<td></td>
</tr>
</table>
<h4>Return Value</h4>
<table>
<tr>
<td>string|null</td>
<td>The ouptut string, null on error</td>
</tr>
</table>
<h4>Exceptions</h4>
<table>
<tr>
<td><a href="http://php.net/RuntimeException"><abbr title="RuntimeException">RuntimeException</abbr></a></td>
<td></td>
</tr>
</table>
</div>
</div>
<h3 id="method_extract">
<div class="location">at line 51</div>
<code> public string|null
<strong>extract</strong>(string $pathfile, <a href="../../SwfTools/EmbeddedObject.html"><abbr title="SwfTools\EmbeddedObject">EmbeddedObject</abbr></a> $embedded, string $outputFile)</code>
</h3>
<div class="details">
<p>Execute the command to extract an embedded object from a flash file</p>
<p></p>
<div class="tags">
<h4>Parameters</h4>
<table>
<tr>
<td>string</td>
<td>$pathfile</td>
<td>the file</td>
</tr>
<tr>
<td><a href="../../SwfTools/EmbeddedObject.html"><abbr title="SwfTools\EmbeddedObject">EmbeddedObject</abbr></a></td>
<td>$embedded</td>
<td>The id of the object</td>
</tr>
<tr>
<td>string</td>
<td>$outputFile</td>
<td>the path where to extract</td>
</tr>
</table>
<h4>Return Value</h4>
<table>
<tr>
<td>string|null</td>
<td>The ouptut string, null on error</td>
</tr>
</table>
<h4>Exceptions</h4>
<table>
<tr>
<td><a href="http://php.net/InvalidArgumentException"><abbr title="InvalidArgumentException">InvalidArgumentException</abbr></a></td>
<td></td>
</tr>
<tr>
<td><a href="http://php.net/RuntimeException"><abbr title="RuntimeException">RuntimeException</abbr></a></td>
<td></td>
</tr>
</table>
</div>
</div>
<h3 id="method_load">
<div class="location">at line 82</div>
<code> static public <a href="../../SwfTools/Binary/Swfrender.html"><abbr title="SwfTools\Binary\Swfrender">Swfrender</abbr></a>
<strong>load</strong>(<a href="../../SwfTools/Configuration.html"><abbr title="SwfTools\Configuration">Configuration</abbr></a> $configuration, <abbr title="Monolog\Logger">Logger</abbr> $logger)</code>
</h3>
<div class="details">
<p>Factory method to build the binary</p>
<p>Either pass a configuration file with the binary settings, or pass an<br />
empty configuration, which will trigger the autodetection</p>
<div class="tags">
<h4>Parameters</h4>
<table>
<tr>
<td><a href="../../SwfTools/Configuration.html"><abbr title="SwfTools\Configuration">Configuration</abbr></a></td>
<td>$configuration</td>
<td>A Configuration</td>
</tr>
<tr>
<td><abbr title="Monolog\Logger">Logger</abbr></td>
<td>$logger</td>
<td>A logger</td>
</tr>
</table>
<h4>Return Value</h4>
<table>
<tr>
<td><a href="../../SwfTools/Binary/Swfrender.html"><abbr title="SwfTools\Binary\Swfrender">Swfrender</abbr></a></td>
<td></td>
</tr>
</table>
<h4>Exceptions</h4>
<table>
<tr>
<td><abbr title="BinaryNotFoundException">BinaryNotFoundException</abbr></td>
<td></td>
</tr>
</table>
</div>
</div>
</div>
<div id="footer">
Generated by <a href="http://sami.sensiolabs.org/" target="_top">Sami, the API Documentation Generator</a>.
</div>
</body>
</html>

View File

@@ -0,0 +1,336 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="robots" content="index, follow, all" />
<title>SwfTools\Binary\Swfrender | PHP-SwfTools API</title>
<link rel="stylesheet" type="text/css" href="../../stylesheet.css">
</head>
<body id="class">
<div class="header">
<ul>
<li><a href="../../classes.html">Classes</a></li>
<li><a href="../../namespaces.html">Namespaces</a></li>
<li><a href="../../interfaces.html">Interfaces</a></li>
<li><a href="../../doc-index.html">Index</a></li>
</ul>
<div id="title">PHP-SwfTools API</div>
<div class="type">Class</div>
<h1><a href="../../SwfTools/Binary.html">SwfTools\Binary</a>\Swfrender</h1>
</div>
<div class="content">
<p>class <strong>Swfrender</strong> extends <a href="../../SwfTools/Binary/Binary.html"><abbr title="SwfTools\Binary\Binary">Binary</abbr></a></p>
<h2>Methods</h2>
<table>
<tr>
<td class="type">
</td>
<td class="last">
<a href="#method___construct">__construct</a>($binaryPathname, <abbr title="Monolog\Logger">Logger</abbr> $logger, $timeout)
<p>The path to the binary</p>
</td>
<td><small>from&nbsp;<a href="../../SwfTools/Binary/Binary.html#method___construct"><abbr title="SwfTools\Binary\Binary">Binary</abbr></a></small></td>
</tr>
<tr>
<td class="type">
<a href="../../SwfTools/Binary/Binary.html"><abbr title="SwfTools\Binary\Binary">Binary</abbr></a>
</td>
<td class="last">
<a href="#method_setTimeout">setTimeout</a>(integer $timeout)
<p>Set the timeout for the underlying processes ; 0 means no timeout</p>
</td>
<td><small>from&nbsp;<a href="../../SwfTools/Binary/Binary.html#method_setTimeout"><abbr title="SwfTools\Binary\Binary">Binary</abbr></a></small></td>
</tr>
<tr>
<td class="type">
integer
</td>
<td class="last">
<a href="#method_getTimeout">getTimeout</a>()
<p>Get the timeout for the underlyning processes ; 0 means no timeout</p>
</td>
<td><small>from&nbsp;<a href="../../SwfTools/Binary/Binary.html#method_getTimeout"><abbr title="SwfTools\Binary\Binary">Binary</abbr></a></small></td>
</tr>
<tr>
<td class="type">
string|null
</td>
<td class="last">
<a href="#method_getVersion">getVersion</a>()
<p>Try to get the version of the binary.</p>
</td>
<td><small>from&nbsp;<a href="../../SwfTools/Binary/Binary.html#method_getVersion"><abbr title="SwfTools\Binary\Binary">Binary</abbr></a></small></td>
</tr>
<tr>
<td class="type">
null
</td>
<td class="last">
<a href="#method_render">render</a>(string $pathfile, string $outputFile, Boolean $legacy)
<p></p>
</td>
<td></td>
</tr>
<tr>
<td class="type">
static&nbsp;<a href="../../SwfTools/Binary/Swfrender.html"><abbr title="SwfTools\Binary\Swfrender">Swfrender</abbr></a>
</td>
<td class="last">
<a href="#method_load">load</a>(<a href="../../SwfTools/Configuration.html"><abbr title="SwfTools\Configuration">Configuration</abbr></a> $configuration, <abbr title="Monolog\Logger">Logger</abbr> $logger)
<p>Factory method to build the binary</p>
</td>
<td></td>
</tr>
</table>
<h2>Details</h2>
<h3 id="method___construct">
<div class="location">in <a href="../../SwfTools/Binary/Binary.html#method___construct"><abbr title="SwfTools\Binary\Binary">Binary</abbr></a> at line 47</div>
<code> public
<strong>__construct</strong>($binaryPathname, <abbr title="Monolog\Logger">Logger</abbr> $logger, $timeout)</code>
</h3>
<div class="details">
<p>The path to the binary</p>
<p></p>
<div class="tags">
<h4>Parameters</h4>
<table>
<tr>
<td></td>
<td>$binaryPathname</td>
<td></td>
</tr>
<tr>
<td><abbr title="Monolog\Logger">Logger</abbr></td>
<td>$logger</td>
<td></td>
</tr>
<tr>
<td></td>
<td>$timeout</td>
<td></td>
</tr>
</table>
</div>
</div>
<h3 id="method_setTimeout">
<div class="location">in <a href="../../SwfTools/Binary/Binary.html#method_setTimeout"><abbr title="SwfTools\Binary\Binary">Binary</abbr></a> at line 67</div>
<code> public <a href="../../SwfTools/Binary/Binary.html"><abbr title="SwfTools\Binary\Binary">Binary</abbr></a>
<strong>setTimeout</strong>(integer $timeout)</code>
</h3>
<div class="details">
<p>Set the timeout for the underlying processes ; 0 means no timeout</p>
<p></p>
<div class="tags">
<h4>Parameters</h4>
<table>
<tr>
<td>integer</td>
<td>$timeout</td>
<td>The timeout value</td>
</tr>
</table>
<h4>Return Value</h4>
<table>
<tr>
<td><a href="../../SwfTools/Binary/Binary.html"><abbr title="SwfTools\Binary\Binary">Binary</abbr></a></td>
<td></td>
</tr>
</table>
<h4>Exceptions</h4>
<table>
<tr>
<td><a href="http://php.net/InvalidArgumentException"><abbr title="InvalidArgumentException">InvalidArgumentException</abbr></a></td>
<td>In case the timeout value is not valid</td>
</tr>
</table>
</div>
</div>
<h3 id="method_getTimeout">
<div class="location">in <a href="../../SwfTools/Binary/Binary.html#method_getTimeout"><abbr title="SwfTools\Binary\Binary">Binary</abbr></a> at line 83</div>
<code> public integer
<strong>getTimeout</strong>()</code>
</h3>
<div class="details">
<p>Get the timeout for the underlyning processes ; 0 means no timeout</p>
<p></p>
<div class="tags">
<h4>Return Value</h4>
<table>
<tr>
<td>integer</td>
<td>The timeout value.</td>
</tr>
</table>
</div>
</div>
<h3 id="method_getVersion">
<div class="location">in <a href="../../SwfTools/Binary/Binary.html#method_getVersion"><abbr title="SwfTools\Binary\Binary">Binary</abbr></a> at line 93</div>
<code> public string|null
<strong>getVersion</strong>()</code>
</h3>
<div class="details">
<p>Try to get the version of the binary.</p>
<p>If the detection fails, return null</p>
<div class="tags">
<h4>Return Value</h4>
<table>
<tr>
<td>string|null</td>
<td>The version of the binary adapter</td>
</tr>
</table>
</div>
</div>
<h3 id="method_render">
<div class="location">at line 32</div>
<code> public null
<strong>render</strong>(string $pathfile, string $outputFile, Boolean $legacy)</code>
</h3>
<div class="details">
<p></p>
<p></p>
<div class="tags">
<h4>Parameters</h4>
<table>
<tr>
<td>string</td>
<td>$pathfile</td>
<td></td>
</tr>
<tr>
<td>string</td>
<td>$outputFile</td>
<td></td>
</tr>
<tr>
<td>Boolean</td>
<td>$legacy</td>
<td></td>
</tr>
</table>
<h4>Return Value</h4>
<table>
<tr>
<td>null</td>
<td></td>
</tr>
</table>
<h4>Exceptions</h4>
<table>
<tr>
<td><a href="http://php.net/InvalidArgumentException"><abbr title="InvalidArgumentException">InvalidArgumentException</abbr></a></td>
<td></td>
</tr>
<tr>
<td><a href="http://php.net/RuntimeException"><abbr title="RuntimeException">RuntimeException</abbr></a></td>
<td></td>
</tr>
</table>
</div>
</div>
<h3 id="method_load">
<div class="location">at line 61</div>
<code> static public <a href="../../SwfTools/Binary/Swfrender.html"><abbr title="SwfTools\Binary\Swfrender">Swfrender</abbr></a>
<strong>load</strong>(<a href="../../SwfTools/Configuration.html"><abbr title="SwfTools\Configuration">Configuration</abbr></a> $configuration, <abbr title="Monolog\Logger">Logger</abbr> $logger)</code>
</h3>
<div class="details">
<p>Factory method to build the binary</p>
<p>Either pass a configuration file with the binary settings, or pass an<br />
empty configuration, which will trigger the autodetection</p>
<div class="tags">
<h4>Parameters</h4>
<table>
<tr>
<td><a href="../../SwfTools/Configuration.html"><abbr title="SwfTools\Configuration">Configuration</abbr></a></td>
<td>$configuration</td>
<td>A Configuration</td>
</tr>
<tr>
<td><abbr title="Monolog\Logger">Logger</abbr></td>
<td>$logger</td>
<td>A logger</td>
</tr>
</table>
<h4>Return Value</h4>
<table>
<tr>
<td><a href="../../SwfTools/Binary/Swfrender.html"><abbr title="SwfTools\Binary\Swfrender">Swfrender</abbr></a></td>
<td></td>
</tr>
</table>
<h4>Exceptions</h4>
<table>
<tr>
<td><abbr title="BinaryNotFoundException">BinaryNotFoundException</abbr></td>
<td></td>
</tr>
</table>
</div>
</div>
</div>
<div id="footer">
Generated by <a href="http://sami.sensiolabs.org/" target="_top">Sami, the API Documentation Generator</a>.
</div>
</body>
</html>

View File

@@ -0,0 +1,9 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="robots" content="index, follow, all" />
<title>SwfTools\Binary | PHP-SwfTools API</title>
<link rel="stylesheet" type="text/css" href="../../stylesheet.css">
</head>
</html>

View File

@@ -0,0 +1,149 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="robots" content="index, follow, all" />
<title>SwfTools\Configuration | PHP-SwfTools API</title>
<link rel="stylesheet" type="text/css" href="../stylesheet.css">
</head>
<body id="class">
<div class="header">
<ul>
<li><a href="../classes.html">Classes</a></li>
<li><a href="../namespaces.html">Namespaces</a></li>
<li><a href="../interfaces.html">Interfaces</a></li>
<li><a href="../doc-index.html">Index</a></li>
</ul>
<div id="title">PHP-SwfTools API</div>
<div class="type">Class</div>
<h1><a href="../SwfTools.html">SwfTools</a>\Configuration</h1>
</div>
<div class="content">
<p>class <strong>Configuration</strong></p>
<h2>Methods</h2>
<table>
<tr>
<td class="type">
</td>
<td class="last">
<a href="#method___construct">__construct</a>(array $configuration = array())
<p></p>
</td>
<td></td>
</tr>
<tr>
<td class="type">
</td>
<td class="last">
<a href="#method_has">has</a>($key)
<p></p>
</td>
<td></td>
</tr>
<tr>
<td class="type">
</td>
<td class="last">
<a href="#method_get">get</a>($key)
<p></p>
</td>
<td></td>
</tr>
</table>
<h2>Details</h2>
<h3 id="method___construct">
<div class="location">at line 20</div>
<code> public
<strong>__construct</strong>(array $configuration = array())</code>
</h3>
<div class="details">
<p></p>
<p></p>
<div class="tags">
<h4>Parameters</h4>
<table>
<tr>
<td>array</td>
<td>$configuration</td>
<td></td>
</tr>
</table>
</div>
</div>
<h3 id="method_has">
<div class="location">at line 27</div>
<code> public
<strong>has</strong>($key)</code>
</h3>
<div class="details">
<p></p>
<p></p>
<div class="tags">
<h4>Parameters</h4>
<table>
<tr>
<td></td>
<td>$key</td>
<td></td>
</tr>
</table>
</div>
</div>
<h3 id="method_get">
<div class="location">at line 32</div>
<code> public
<strong>get</strong>($key)</code>
</h3>
<div class="details">
<p></p>
<p></p>
<div class="tags">
<h4>Parameters</h4>
<table>
<tr>
<td></td>
<td>$key</td>
<td></td>
</tr>
</table>
</div>
</div>
</div>
<div id="footer">
Generated by <a href="http://sami.sensiolabs.org/" target="_top">Sami, the API Documentation Generator</a>.
</div>
</body>
</html>

View File

@@ -0,0 +1,282 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="robots" content="index, follow, all" />
<title>SwfTools\EmbeddedObject | PHP-SwfTools API</title>
<link rel="stylesheet" type="text/css" href="../stylesheet.css">
</head>
<body id="class">
<div class="header">
<ul>
<li><a href="../classes.html">Classes</a></li>
<li><a href="../namespaces.html">Namespaces</a></li>
<li><a href="../interfaces.html">Interfaces</a></li>
<li><a href="../doc-index.html">Index</a></li>
</ul>
<div id="title">PHP-SwfTools API</div>
<div class="type">Class</div>
<h1><a href="../SwfTools.html">SwfTools</a>\EmbeddedObject</h1>
</div>
<div class="content">
<p>class <strong>EmbeddedObject</strong></p>
<h2>Constants</h2>
<table>
<tr>
<td>TYPE_SHAPE</td>
<td class="last">
<p><em></em></p>
<p></p>
</td>
</tr>
<tr>
<td>TYPE_MOVIECLIP</td>
<td class="last">
<p><em></em></p>
<p></p>
</td>
</tr>
<tr>
<td>TYPE_JPEG</td>
<td class="last">
<p><em></em></p>
<p></p>
</td>
</tr>
<tr>
<td>TYPE_PNG</td>
<td class="last">
<p><em></em></p>
<p></p>
</td>
</tr>
<tr>
<td>TYPE_FRAME</td>
<td class="last">
<p><em></em></p>
<p></p>
</td>
</tr>
<tr>
<td>TYPE_SOUND</td>
<td class="last">
<p><em></em></p>
<p></p>
</td>
</tr>
</table>
<h2>Methods</h2>
<table>
<tr>
<td class="type">
</td>
<td class="last">
<a href="#method___construct">__construct</a>(string $option, <abbr title="SwfTools\type">type</abbr> $type, int $id)
<p></p>
</td>
<td></td>
</tr>
<tr>
<td class="type">
string
</td>
<td class="last">
<a href="#method_getOption">getOption</a>()
<p></p>
</td>
<td></td>
</tr>
<tr>
<td class="type">
string
</td>
<td class="last">
<a href="#method_getType">getType</a>()
<p></p>
</td>
<td></td>
</tr>
<tr>
<td class="type">
int
</td>
<td class="last">
<a href="#method_getId">getId</a>()
<p></p>
</td>
<td></td>
</tr>
<tr>
<td class="type">
static&nbsp;string
</td>
<td class="last">
<a href="#method_detectType">detectType</a>(string $type)
<p>Detect type based on the raw output</p>
</td>
<td></td>
</tr>
</table>
<h2>Details</h2>
<h3 id="method___construct">
<div class="location">at line 33</div>
<code> public
<strong>__construct</strong>(string $option, <abbr title="SwfTools\type">type</abbr> $type, int $id)</code>
</h3>
<div class="details">
<p></p>
<p></p>
<div class="tags">
<h4>Parameters</h4>
<table>
<tr>
<td>string</td>
<td>$option</td>
<td>The option to pass to the command line to extract</td>
</tr>
<tr>
<td><abbr title="SwfTools\type">type</abbr></td>
<td>$type</td>
<td>The type of embedded object, one of the self::TYPE_* constants</td>
</tr>
<tr>
<td>int</td>
<td>$id</td>
<td>The id of the object</td>
</tr>
</table>
</div>
</div>
<h3 id="method_getOption">
<div class="location">at line 44</div>
<code> public string
<strong>getOption</strong>()</code>
</h3>
<div class="details">
<p></p>
<p></p>
<div class="tags">
<h4>Return Value</h4>
<table>
<tr>
<td>string</td>
<td></td>
</tr>
</table>
</div>
</div>
<h3 id="method_getType">
<div class="location">at line 53</div>
<code> public string
<strong>getType</strong>()</code>
</h3>
<div class="details">
<p></p>
<p></p>
<div class="tags">
<h4>Return Value</h4>
<table>
<tr>
<td>string</td>
<td></td>
</tr>
</table>
</div>
</div>
<h3 id="method_getId">
<div class="location">at line 62</div>
<code> public int
<strong>getId</strong>()</code>
</h3>
<div class="details">
<p></p>
<p></p>
<div class="tags">
<h4>Return Value</h4>
<table>
<tr>
<td>int</td>
<td></td>
</tr>
</table>
</div>
</div>
<h3 id="method_detectType">
<div class="location">at line 73</div>
<code> static public string
<strong>detectType</strong>(string $type)</code>
</h3>
<div class="details">
<p>Detect type based on the raw output</p>
<p></p>
<div class="tags">
<h4>Parameters</h4>
<table>
<tr>
<td>string</td>
<td>$type</td>
<td>The raw output</td>
</tr>
</table>
<h4>Return Value</h4>
<table>
<tr>
<td>string</td>
<td></td>
</tr>
</table>
</div>
</div>
</div>
<div id="footer">
Generated by <a href="http://sami.sensiolabs.org/" target="_top">Sami, the API Documentation Generator</a>.
</div>
</body>
</html>

View File

@@ -0,0 +1,57 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="robots" content="index, follow, all" />
<title>SwfTools\Exception | PHP-SwfTools API</title>
<link rel="stylesheet" type="text/css" href="../stylesheet.css">
</head>
<body id="overview">
<div class="header">
<ul>
<li><a href="../classes.html">Classes</a></li>
<li><a href="../namespaces.html">Namespaces</a></li>
<li><a href="../interfaces.html">Interfaces</a></li>
<li><a href="../doc-index.html">Index</a></li>
</ul>
<div id="title">PHP-SwfTools API</div>
<div class="type">Namespace</div>
<h1>SwfTools\Exception</h1>
</div>
<div class="content">
<table>
<tr>
<td><a href="../SwfTools/Exception/BinaryNotFoundException.html"><abbr title="SwfTools\Exception\BinaryNotFoundException">BinaryNotFoundException</abbr></a></td>
<td class="last"></td>
</tr>
<tr>
<td><a href="../SwfTools/Exception/InvalidArgumentException.html"><abbr title="SwfTools\Exception\InvalidArgumentException">InvalidArgumentException</abbr></a></td>
<td class="last"></td>
</tr>
<tr>
<td><a href="../SwfTools/Exception/LogicException.html"><abbr title="SwfTools\Exception\LogicException">LogicException</abbr></a></td>
<td class="last"></td>
</tr>
<tr>
<td><a href="../SwfTools/Exception/RuntimeException.html"><abbr title="SwfTools\Exception\RuntimeException">RuntimeException</abbr></a></td>
<td class="last"></td>
</tr>
</table>
<h2>Interfaces</h2>
<table>
<tr>
<td><a href="../SwfTools/Exception/ExceptionInterface.html"><abbr title="SwfTools\Exception\ExceptionInterface">ExceptionInterface</abbr></a></td>
<td class="last"></td>
</tr>
</table>
</div>
<div id="footer">
Generated by <a href="http://sami.sensiolabs.org/" target="_top">Sami, the API Documentation Generator</a>.
</div>
</body>
</html>

View File

@@ -0,0 +1,36 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="robots" content="index, follow, all" />
<title>SwfTools\Exception\BinaryNotFoundException | PHP-SwfTools API</title>
<link rel="stylesheet" type="text/css" href="../../stylesheet.css">
</head>
<body id="class">
<div class="header">
<ul>
<li><a href="../../classes.html">Classes</a></li>
<li><a href="../../namespaces.html">Namespaces</a></li>
<li><a href="../../interfaces.html">Interfaces</a></li>
<li><a href="../../doc-index.html">Index</a></li>
</ul>
<div id="title">PHP-SwfTools API</div>
<div class="type">Class</div>
<h1><a href="../../SwfTools/Exception.html">SwfTools\Exception</a>\BinaryNotFoundException</h1>
</div>
<div class="content">
<p>class <strong>BinaryNotFoundException</strong> extends <a href="http://php.net/RuntimeException"><abbr title="RuntimeException">RuntimeException</abbr></a> implements
<a href="../../SwfTools/Exception/ExceptionInterface.html"><abbr title="SwfTools\Exception\ExceptionInterface">ExceptionInterface</abbr></a></p>
</div>
<div id="footer">
Generated by <a href="http://sami.sensiolabs.org/" target="_top">Sami, the API Documentation Generator</a>.
</div>
</body>
</html>

View File

@@ -0,0 +1,35 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="robots" content="index, follow, all" />
<title>SwfTools\Exception\ExceptionInterface | PHP-SwfTools API</title>
<link rel="stylesheet" type="text/css" href="../../stylesheet.css">
</head>
<body id="class">
<div class="header">
<ul>
<li><a href="../../classes.html">Classes</a></li>
<li><a href="../../namespaces.html">Namespaces</a></li>
<li><a href="../../interfaces.html">Interfaces</a></li>
<li><a href="../../doc-index.html">Index</a></li>
</ul>
<div id="title">PHP-SwfTools API</div>
<div class="type">Interface</div>
<h1><a href="../../SwfTools/Exception.html">SwfTools\Exception</a>\ExceptionInterface</h1>
</div>
<div class="content">
<p>interface <strong>ExceptionInterface</strong></p>
</div>
<div id="footer">
Generated by <a href="http://sami.sensiolabs.org/" target="_top">Sami, the API Documentation Generator</a>.
</div>
</body>
</html>

View File

@@ -0,0 +1,36 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="robots" content="index, follow, all" />
<title>SwfTools\Exception\InvalidArgumentException | PHP-SwfTools API</title>
<link rel="stylesheet" type="text/css" href="../../stylesheet.css">
</head>
<body id="class">
<div class="header">
<ul>
<li><a href="../../classes.html">Classes</a></li>
<li><a href="../../namespaces.html">Namespaces</a></li>
<li><a href="../../interfaces.html">Interfaces</a></li>
<li><a href="../../doc-index.html">Index</a></li>
</ul>
<div id="title">PHP-SwfTools API</div>
<div class="type">Class</div>
<h1><a href="../../SwfTools/Exception.html">SwfTools\Exception</a>\InvalidArgumentException</h1>
</div>
<div class="content">
<p>class <strong>InvalidArgumentException</strong> extends <a href="http://php.net/InvalidArgumentException"><abbr title="InvalidArgumentException">InvalidArgumentException</abbr></a> implements
<a href="../../SwfTools/Exception/ExceptionInterface.html"><abbr title="SwfTools\Exception\ExceptionInterface">ExceptionInterface</abbr></a></p>
</div>
<div id="footer">
Generated by <a href="http://sami.sensiolabs.org/" target="_top">Sami, the API Documentation Generator</a>.
</div>
</body>
</html>

View File

@@ -0,0 +1,36 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="robots" content="index, follow, all" />
<title>SwfTools\Exception\LogicException | PHP-SwfTools API</title>
<link rel="stylesheet" type="text/css" href="../../stylesheet.css">
</head>
<body id="class">
<div class="header">
<ul>
<li><a href="../../classes.html">Classes</a></li>
<li><a href="../../namespaces.html">Namespaces</a></li>
<li><a href="../../interfaces.html">Interfaces</a></li>
<li><a href="../../doc-index.html">Index</a></li>
</ul>
<div id="title">PHP-SwfTools API</div>
<div class="type">Class</div>
<h1><a href="../../SwfTools/Exception.html">SwfTools\Exception</a>\LogicException</h1>
</div>
<div class="content">
<p>class <strong>LogicException</strong> extends <a href="http://php.net/LogicException"><abbr title="LogicException">LogicException</abbr></a> implements
<a href="../../SwfTools/Exception/ExceptionInterface.html"><abbr title="SwfTools\Exception\ExceptionInterface">ExceptionInterface</abbr></a></p>
</div>
<div id="footer">
Generated by <a href="http://sami.sensiolabs.org/" target="_top">Sami, the API Documentation Generator</a>.
</div>
</body>
</html>

View File

@@ -0,0 +1,36 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="robots" content="index, follow, all" />
<title>SwfTools\Exception\RuntimeException | PHP-SwfTools API</title>
<link rel="stylesheet" type="text/css" href="../../stylesheet.css">
</head>
<body id="class">
<div class="header">
<ul>
<li><a href="../../classes.html">Classes</a></li>
<li><a href="../../namespaces.html">Namespaces</a></li>
<li><a href="../../interfaces.html">Interfaces</a></li>
<li><a href="../../doc-index.html">Index</a></li>
</ul>
<div id="title">PHP-SwfTools API</div>
<div class="type">Class</div>
<h1><a href="../../SwfTools/Exception.html">SwfTools\Exception</a>\RuntimeException</h1>
</div>
<div class="content">
<p>class <strong>RuntimeException</strong> extends <a href="http://php.net/RuntimeException"><abbr title="RuntimeException">RuntimeException</abbr></a> implements
<a href="../../SwfTools/Exception/ExceptionInterface.html"><abbr title="SwfTools\Exception\ExceptionInterface">ExceptionInterface</abbr></a></p>
</div>
<div id="footer">
Generated by <a href="http://sami.sensiolabs.org/" target="_top">Sami, the API Documentation Generator</a>.
</div>
</body>
</html>

View File

@@ -0,0 +1,9 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="robots" content="index, follow, all" />
<title>SwfTools\Exception | PHP-SwfTools API</title>
<link rel="stylesheet" type="text/css" href="../../stylesheet.css">
</head>
</html>

View File

@@ -0,0 +1,46 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="robots" content="index, follow, all" />
<title>SwfTools\Processor | PHP-SwfTools API</title>
<link rel="stylesheet" type="text/css" href="../stylesheet.css">
</head>
<body id="overview">
<div class="header">
<ul>
<li><a href="../classes.html">Classes</a></li>
<li><a href="../namespaces.html">Namespaces</a></li>
<li><a href="../interfaces.html">Interfaces</a></li>
<li><a href="../doc-index.html">Index</a></li>
</ul>
<div id="title">PHP-SwfTools API</div>
<div class="type">Namespace</div>
<h1>SwfTools\Processor</h1>
</div>
<div class="content">
<table>
<tr>
<td><a href="../SwfTools/Processor/File.html"><abbr title="SwfTools\Processor\File">File</abbr></a></td>
<td class="last"></td>
</tr>
<tr>
<td><a href="../SwfTools/Processor/FlashFile.html"><abbr title="SwfTools\Processor\FlashFile">FlashFile</abbr></a></td>
<td class="last"></td>
</tr>
<tr>
<td><a href="../SwfTools/Processor/PDFFile.html"><abbr title="SwfTools\Processor\PDFFile">PDFFile</abbr></a></td>
<td class="last"></td>
</tr>
</table>
</div>
<div id="footer">
Generated by <a href="http://sami.sensiolabs.org/" target="_top">Sami, the API Documentation Generator</a>.
</div>
</body>
</html>

View File

@@ -0,0 +1,169 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="robots" content="index, follow, all" />
<title>SwfTools\Processor\File | PHP-SwfTools API</title>
<link rel="stylesheet" type="text/css" href="../../stylesheet.css">
</head>
<body id="class">
<div class="header">
<ul>
<li><a href="../../classes.html">Classes</a></li>
<li><a href="../../namespaces.html">Namespaces</a></li>
<li><a href="../../interfaces.html">Interfaces</a></li>
<li><a href="../../doc-index.html">Index</a></li>
</ul>
<div id="title">PHP-SwfTools API</div>
<div class="type">Class</div>
<h1><a href="../../SwfTools/Processor.html">SwfTools\Processor</a>\File</h1>
</div>
<div class="content">
<p>abstract class <strong>File</strong></p>
<h2>Methods</h2>
<table>
<tr>
<td class="type">
</td>
<td class="last">
<a href="#method___construct">__construct</a>(<a href="../../SwfTools/Configuration.html"><abbr title="SwfTools\Configuration">Configuration</abbr></a> $configuration = null, <abbr title="Monolog\Logger">Logger</abbr> $logger = null)
<p>Build the File processor given the configuration</p>
</td>
<td></td>
</tr>
<tr>
<td class="type">
</td>
<td class="last">
<a href="#method___destruct">__destruct</a>()
<p></p>
</td>
<td></td>
</tr>
<tr>
<td class="type">
</td>
<td class="last">
<a href="#method_open">open</a>($pathfile)
<p></p>
</td>
<td></td>
</tr>
<tr>
<td class="type">
</td>
<td class="last">
<a href="#method_close">close</a>()
<p></p>
</td>
<td></td>
</tr>
</table>
<h2>Details</h2>
<h3 id="method___construct">
<div class="location">at line 33</div>
<code> public
<strong>__construct</strong>(<a href="../../SwfTools/Configuration.html"><abbr title="SwfTools\Configuration">Configuration</abbr></a> $configuration = null, <abbr title="Monolog\Logger">Logger</abbr> $logger = null)</code>
</h3>
<div class="details">
<p>Build the File processor given the configuration</p>
<p></p>
<div class="tags">
<h4>Parameters</h4>
<table>
<tr>
<td><a href="../../SwfTools/Configuration.html"><abbr title="SwfTools\Configuration">Configuration</abbr></a></td>
<td>$configuration</td>
<td></td>
</tr>
<tr>
<td><abbr title="Monolog\Logger">Logger</abbr></td>
<td>$logger</td>
<td></td>
</tr>
</table>
</div>
</div>
<h3 id="method___destruct">
<div class="location">at line 46</div>
<code> public
<strong>__destruct</strong>()</code>
</h3>
<div class="details">
<p></p>
<p></p>
<div class="tags">
</div>
</div>
<h3 id="method_open">
<div class="location">at line 52</div>
<code> public
<strong>open</strong>($pathfile)</code>
</h3>
<div class="details">
<p></p>
<p></p>
<div class="tags">
<h4>Parameters</h4>
<table>
<tr>
<td></td>
<td>$pathfile</td>
<td></td>
</tr>
</table>
</div>
</div>
<h3 id="method_close">
<div class="location">at line 63</div>
<code> public
<strong>close</strong>()</code>
</h3>
<div class="details">
<p></p>
<p></p>
<div class="tags">
</div>
</div>
</div>
<div id="footer">
Generated by <a href="http://sami.sensiolabs.org/" target="_top">Sami, the API Documentation Generator</a>.
</div>
</body>
</html>

View File

@@ -0,0 +1,386 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="robots" content="index, follow, all" />
<title>SwfTools\Processor\FlashFile | PHP-SwfTools API</title>
<link rel="stylesheet" type="text/css" href="../../stylesheet.css">
</head>
<body id="class">
<div class="header">
<ul>
<li><a href="../../classes.html">Classes</a></li>
<li><a href="../../namespaces.html">Namespaces</a></li>
<li><a href="../../interfaces.html">Interfaces</a></li>
<li><a href="../../doc-index.html">Index</a></li>
</ul>
<div id="title">PHP-SwfTools API</div>
<div class="type">Class</div>
<h1><a href="../../SwfTools/Processor.html">SwfTools\Processor</a>\FlashFile</h1>
</div>
<div class="content">
<p>class <strong>FlashFile</strong> extends <a href="../../SwfTools/Processor/File.html"><abbr title="SwfTools\Processor\File">File</abbr></a></p>
<h2>Methods</h2>
<table>
<tr>
<td class="type">
</td>
<td class="last">
<a href="#method___construct">__construct</a>(<a href="../../SwfTools/Configuration.html"><abbr title="SwfTools\Configuration">Configuration</abbr></a> $configuration = null, <abbr title="Monolog\Logger">Logger</abbr> $logger = null)
<p>Build the File processor given the configuration</p>
</td>
<td><small>from&nbsp;<a href="../../SwfTools/Processor/File.html#method___construct"><abbr title="SwfTools\Processor\File">File</abbr></a></small></td>
</tr>
<tr>
<td class="type">
</td>
<td class="last">
<a href="#method___destruct">__destruct</a>()
<p></p>
</td>
<td></td>
</tr>
<tr>
<td class="type">
</td>
<td class="last">
<a href="#method_open">open</a>($pathfile)
<p></p>
</td>
<td><small>from&nbsp;<a href="../../SwfTools/Processor/File.html#method_open"><abbr title="SwfTools\Processor\File">File</abbr></a></small></td>
</tr>
<tr>
<td class="type">
</td>
<td class="last">
<a href="#method_close">close</a>()
<p></p>
</td>
<td><small>from&nbsp;<a href="../../SwfTools/Processor/File.html#method_close"><abbr title="SwfTools\Processor\File">File</abbr></a></small></td>
</tr>
<tr>
<td class="type">
Boolean
</td>
<td class="last">
<a href="#method_render">render</a>(string $outputFile, Boolean $legacy_rendering = false)
<p>Render the flash to PNG file</p>
</td>
<td></td>
</tr>
<tr>
<td class="type">
<abbr title="SwfTools\Processor\type">type</abbr>
</td>
<td class="last">
<a href="#method_listEmbeddedObjects">listEmbeddedObjects</a>(Boolean $useCache = false)
<p>List all embedded object of the current flash file</p>
</td>
<td></td>
</tr>
<tr>
<td class="type">
string
</td>
<td class="last">
<a href="#method_extractEmbedded">extractEmbedded</a>(integer $id, string $outputFile)
<p>Extract the specified Embedded file</p>
</td>
<td></td>
</tr>
<tr>
<td class="type">
</td>
<td class="last">
<a href="#method_extractFirstImage">extractFirstImage</a>(string $outputFile)
<p>Extract the first embedded image found</p>
</td>
<td></td>
</tr>
</table>
<h2>Details</h2>
<h3 id="method___construct">
<div class="location">in <a href="../../SwfTools/Processor/File.html#method___construct"><abbr title="SwfTools\Processor\File">File</abbr></a> at line 33</div>
<code> public
<strong>__construct</strong>(<a href="../../SwfTools/Configuration.html"><abbr title="SwfTools\Configuration">Configuration</abbr></a> $configuration = null, <abbr title="Monolog\Logger">Logger</abbr> $logger = null)</code>
</h3>
<div class="details">
<p>Build the File processor given the configuration</p>
<p></p>
<div class="tags">
<h4>Parameters</h4>
<table>
<tr>
<td><a href="../../SwfTools/Configuration.html"><abbr title="SwfTools\Configuration">Configuration</abbr></a></td>
<td>$configuration</td>
<td></td>
</tr>
<tr>
<td><abbr title="Monolog\Logger">Logger</abbr></td>
<td>$logger</td>
<td></td>
</tr>
</table>
</div>
</div>
<h3 id="method___destruct">
<div class="location">at line 24</div>
<code> public
<strong>__destruct</strong>()</code>
</h3>
<div class="details">
<p></p>
<p></p>
<div class="tags">
</div>
</div>
<h3 id="method_open">
<div class="location">in <a href="../../SwfTools/Processor/File.html#method_open"><abbr title="SwfTools\Processor\File">File</abbr></a> at line 52</div>
<code> public
<strong>open</strong>($pathfile)</code>
</h3>
<div class="details">
<p></p>
<p></p>
<div class="tags">
<h4>Parameters</h4>
<table>
<tr>
<td></td>
<td>$pathfile</td>
<td></td>
</tr>
</table>
</div>
</div>
<h3 id="method_close">
<div class="location">in <a href="../../SwfTools/Processor/File.html#method_close"><abbr title="SwfTools\Processor\File">File</abbr></a> at line 63</div>
<code> public
<strong>close</strong>()</code>
</h3>
<div class="details">
<p></p>
<p></p>
<div class="tags">
</div>
</div>
<h3 id="method_render">
<div class="location">at line 38</div>
<code> public Boolean
<strong>render</strong>(string $outputFile, Boolean $legacy_rendering = false)</code>
</h3>
<div class="details">
<p>Render the flash to PNG file</p>
<p></p>
<div class="tags">
<h4>Parameters</h4>
<table>
<tr>
<td>string</td>
<td>$outputFile</td>
<td></td>
</tr>
<tr>
<td>Boolean</td>
<td>$legacy_rendering</td>
<td></td>
</tr>
</table>
<h4>Return Value</h4>
<table>
<tr>
<td>Boolean</td>
<td></td>
</tr>
</table>
<h4>Exceptions</h4>
<table>
<tr>
<td><a href="http://php.net/InvalidArgumentException"><abbr title="InvalidArgumentException">InvalidArgumentException</abbr></a></td>
<td></td>
</tr>
</table>
</div>
</div>
<h3 id="method_listEmbeddedObjects">
<div class="location">at line 70</div>
<code> public <abbr title="SwfTools\Processor\type">type</abbr>
<strong>listEmbeddedObjects</strong>(Boolean $useCache = false)</code>
</h3>
<div class="details">
<p>List all embedded object of the current flash file</p>
<p></p>
<div class="tags">
<h4>Parameters</h4>
<table>
<tr>
<td>Boolean</td>
<td>$useCache</td>
<td></td>
</tr>
</table>
<h4>Return Value</h4>
<table>
<tr>
<td><abbr title="SwfTools\Processor\type">type</abbr></td>
<td></td>
</tr>
</table>
<h4>Exceptions</h4>
<table>
<tr>
<td><a href="http://php.net/RuntimeException"><abbr title="RuntimeException">RuntimeException</abbr></a></td>
<td></td>
</tr>
</table>
</div>
</div>
<h3 id="method_extractEmbedded">
<div class="location">at line 132</div>
<code> public string
<strong>extractEmbedded</strong>(integer $id, string $outputFile)</code>
</h3>
<div class="details">
<p>Extract the specified Embedded file</p>
<p></p>
<div class="tags">
<h4>Parameters</h4>
<table>
<tr>
<td>integer</td>
<td>$id</td>
<td></td>
</tr>
<tr>
<td>string</td>
<td>$outputFile</td>
<td></td>
</tr>
</table>
<h4>Return Value</h4>
<table>
<tr>
<td>string</td>
<td></td>
</tr>
</table>
<h4>Exceptions</h4>
<table>
<tr>
<td><a href="http://php.net/RuntimeException"><abbr title="RuntimeException">RuntimeException</abbr></a></td>
<td></td>
</tr>
</table>
</div>
</div>
<h3 id="method_extractFirstImage">
<div class="location">at line 169</div>
<code> public
<strong>extractFirstImage</strong>(string $outputFile)</code>
</h3>
<div class="details">
<p>Extract the first embedded image found</p>
<p></p>
<div class="tags">
<h4>Parameters</h4>
<table>
<tr>
<td>string</td>
<td>$outputFile</td>
<td></td>
</tr>
</table>
<h4>Exceptions</h4>
<table>
<tr>
<td><a href="http://php.net/InvalidArgumentException"><abbr title="InvalidArgumentException">InvalidArgumentException</abbr></a></td>
<td></td>
</tr>
<tr>
<td><a href="http://php.net/RuntimeException"><abbr title="RuntimeException">RuntimeException</abbr></a></td>
<td></td>
</tr>
</table>
</div>
</div>
</div>
<div id="footer">
Generated by <a href="http://sami.sensiolabs.org/" target="_top">Sami, the API Documentation Generator</a>.
</div>
</body>
</html>

View File

@@ -0,0 +1,213 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="robots" content="index, follow, all" />
<title>SwfTools\Processor\PDFFile | PHP-SwfTools API</title>
<link rel="stylesheet" type="text/css" href="../../stylesheet.css">
</head>
<body id="class">
<div class="header">
<ul>
<li><a href="../../classes.html">Classes</a></li>
<li><a href="../../namespaces.html">Namespaces</a></li>
<li><a href="../../interfaces.html">Interfaces</a></li>
<li><a href="../../doc-index.html">Index</a></li>
</ul>
<div id="title">PHP-SwfTools API</div>
<div class="type">Class</div>
<h1><a href="../../SwfTools/Processor.html">SwfTools\Processor</a>\PDFFile</h1>
</div>
<div class="content">
<p>class <strong>PDFFile</strong> extends <a href="../../SwfTools/Processor/File.html"><abbr title="SwfTools\Processor\File">File</abbr></a></p>
<h2>Methods</h2>
<table>
<tr>
<td class="type">
</td>
<td class="last">
<a href="#method___construct">__construct</a>(<a href="../../SwfTools/Configuration.html"><abbr title="SwfTools\Configuration">Configuration</abbr></a> $configuration = null, <abbr title="Monolog\Logger">Logger</abbr> $logger = null)
<p>Build the File processor given the configuration</p>
</td>
<td><small>from&nbsp;<a href="../../SwfTools/Processor/File.html#method___construct"><abbr title="SwfTools\Processor\File">File</abbr></a></small></td>
</tr>
<tr>
<td class="type">
</td>
<td class="last">
<a href="#method___destruct">__destruct</a>()
<p></p>
</td>
<td><small>from&nbsp;<a href="../../SwfTools/Processor/File.html#method___destruct"><abbr title="SwfTools\Processor\File">File</abbr></a></small></td>
</tr>
<tr>
<td class="type">
</td>
<td class="last">
<a href="#method_open">open</a>($pathfile)
<p></p>
</td>
<td><small>from&nbsp;<a href="../../SwfTools/Processor/File.html#method_open"><abbr title="SwfTools\Processor\File">File</abbr></a></small></td>
</tr>
<tr>
<td class="type">
</td>
<td class="last">
<a href="#method_close">close</a>()
<p></p>
</td>
<td><small>from&nbsp;<a href="../../SwfTools/Processor/File.html#method_close"><abbr title="SwfTools\Processor\File">File</abbr></a></small></td>
</tr>
<tr>
<td class="type">
</td>
<td class="last">
<a href="#method_toSwf">toSwf</a>(string $outputFile)
<p></p>
</td>
<td></td>
</tr>
</table>
<h2>Details</h2>
<h3 id="method___construct">
<div class="location">in <a href="../../SwfTools/Processor/File.html#method___construct"><abbr title="SwfTools\Processor\File">File</abbr></a> at line 33</div>
<code> public
<strong>__construct</strong>(<a href="../../SwfTools/Configuration.html"><abbr title="SwfTools\Configuration">Configuration</abbr></a> $configuration = null, <abbr title="Monolog\Logger">Logger</abbr> $logger = null)</code>
</h3>
<div class="details">
<p>Build the File processor given the configuration</p>
<p></p>
<div class="tags">
<h4>Parameters</h4>
<table>
<tr>
<td><a href="../../SwfTools/Configuration.html"><abbr title="SwfTools\Configuration">Configuration</abbr></a></td>
<td>$configuration</td>
<td></td>
</tr>
<tr>
<td><abbr title="Monolog\Logger">Logger</abbr></td>
<td>$logger</td>
<td></td>
</tr>
</table>
</div>
</div>
<h3 id="method___destruct">
<div class="location">in <a href="../../SwfTools/Processor/File.html#method___destruct"><abbr title="SwfTools\Processor\File">File</abbr></a> at line 46</div>
<code> public
<strong>__destruct</strong>()</code>
</h3>
<div class="details">
<p></p>
<p></p>
<div class="tags">
</div>
</div>
<h3 id="method_open">
<div class="location">in <a href="../../SwfTools/Processor/File.html#method_open"><abbr title="SwfTools\Processor\File">File</abbr></a> at line 52</div>
<code> public
<strong>open</strong>($pathfile)</code>
</h3>
<div class="details">
<p></p>
<p></p>
<div class="tags">
<h4>Parameters</h4>
<table>
<tr>
<td></td>
<td>$pathfile</td>
<td></td>
</tr>
</table>
</div>
</div>
<h3 id="method_close">
<div class="location">in <a href="../../SwfTools/Processor/File.html#method_close"><abbr title="SwfTools\Processor\File">File</abbr></a> at line 63</div>
<code> public
<strong>close</strong>()</code>
</h3>
<div class="details">
<p></p>
<p></p>
<div class="tags">
</div>
</div>
<h3 id="method_toSwf">
<div class="location">at line 24</div>
<code> public
<strong>toSwf</strong>(string $outputFile)</code>
</h3>
<div class="details">
<p></p>
<p></p>
<div class="tags">
<h4>Parameters</h4>
<table>
<tr>
<td>string</td>
<td>$outputFile</td>
<td></td>
</tr>
</table>
<h4>Exceptions</h4>
<table>
<tr>
<td><a href="http://php.net/InvalidArgumentException"><abbr title="InvalidArgumentException">InvalidArgumentException</abbr></a></td>
<td></td>
</tr>
</table>
</div>
</div>
</div>
<div id="footer">
Generated by <a href="http://sami.sensiolabs.org/" target="_top">Sami, the API Documentation Generator</a>.
</div>
</body>
</html>

View File

@@ -0,0 +1,9 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="robots" content="index, follow, all" />
<title>SwfTools\Processor | PHP-SwfTools API</title>
<link rel="stylesheet" type="text/css" href="../../stylesheet.css">
</head>
</html>

View File

@@ -0,0 +1,115 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="robots" content="index, follow, all" />
<title>SwfTools\SwfToolsServiceProvider | PHP-SwfTools API</title>
<link rel="stylesheet" type="text/css" href="../stylesheet.css">
</head>
<body id="class">
<div class="header">
<ul>
<li><a href="../classes.html">Classes</a></li>
<li><a href="../namespaces.html">Namespaces</a></li>
<li><a href="../interfaces.html">Interfaces</a></li>
<li><a href="../doc-index.html">Index</a></li>
</ul>
<div id="title">PHP-SwfTools API</div>
<div class="type">Class</div>
<h1><a href="../SwfTools.html">SwfTools</a>\SwfToolsServiceProvider</h1>
</div>
<div class="content">
<p>class <strong>SwfToolsServiceProvider</strong> implements
<abbr title="Silex\ServiceProviderInterface">ServiceProviderInterface</abbr></p>
<h2>Methods</h2>
<table>
<tr>
<td class="type">
</td>
<td class="last">
<a href="#method_register">register</a>(<abbr title="Silex\Application">Application</abbr> $app)
<p></p>
</td>
<td></td>
</tr>
<tr>
<td class="type">
</td>
<td class="last">
<a href="#method_boot">boot</a>(<abbr title="Silex\Application">Application</abbr> $app)
<p></p>
</td>
<td></td>
</tr>
</table>
<h2>Details</h2>
<h3 id="method_register">
<div class="location">at line 22</div>
<code> public
<strong>register</strong>(<abbr title="Silex\Application">Application</abbr> $app)</code>
</h3>
<div class="details">
<p></p>
<p></p>
<div class="tags">
<h4>Parameters</h4>
<table>
<tr>
<td><abbr title="Silex\Application">Application</abbr></td>
<td>$app</td>
<td></td>
</tr>
</table>
</div>
</div>
<h3 id="method_boot">
<div class="location">at line 53</div>
<code> public
<strong>boot</strong>(<abbr title="Silex\Application">Application</abbr> $app)</code>
</h3>
<div class="details">
<p></p>
<p></p>
<div class="tags">
<h4>Parameters</h4>
<table>
<tr>
<td><abbr title="Silex\Application">Application</abbr></td>
<td>$app</td>
<td></td>
</tr>
</table>
</div>
</div>
</div>
<div id="footer">
Generated by <a href="http://sami.sensiolabs.org/" target="_top">Sami, the API Documentation Generator</a>.
</div>
</body>
</html>

View File

@@ -0,0 +1,9 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="robots" content="index, follow, all" />
<title>SwfTools | PHP-SwfTools API</title>
<link rel="stylesheet" type="text/css" href="../stylesheet.css">
</head>
</html>

View File

@@ -0,0 +1 @@
master

View File

@@ -0,0 +1 @@
0.8.1-DEV

View File

@@ -0,0 +1,9 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="robots" content="index, follow, all" />
<title>All Classes | PHP-SwfTools API</title>
<link rel="stylesheet" type="text/css" href="stylesheet.css">
</head>
</html>

View File

@@ -0,0 +1,159 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="robots" content="index, follow, all" />
<title>Classes | PHP-SwfTools API</title>
<link rel="stylesheet" type="text/css" href="stylesheet.css">
</head>
<body id="overview">
<div class="header">
<ul>
<li><a href="classes.html">Classes</a></li>
<li><a href="namespaces.html">Namespaces</a></li>
<li><a href="interfaces.html">Interfaces</a></li>
<li><a href="doc-index.html">Index</a></li>
</ul>
<div id="title">PHP-SwfTools API</div>
<h1>Classes</h1>
</div>
<div class="content">
<table>
<tr>
<td>
<em> <a href="SwfTools/Binary/AdapterInterface.html" target="main"><abbr title="SwfTools\Binary\AdapterInterface">SwfTools\Binary\AdapterInterface</abbr></a>
</em> </td>
<td>
The adapter interface.
</td>
</tr>
<tr>
<td>
<a href="SwfTools/Binary/Binary.html" target="main"><abbr title="SwfTools\Binary\Binary">SwfTools\Binary\Binary</abbr></a>
</td>
<td>
The abstract binary adapter
</td>
</tr>
<tr>
<td>
<a href="SwfTools/Binary/Pdf2swf.html" target="main"><abbr title="SwfTools\Binary\Pdf2swf">SwfTools\Binary\Pdf2swf</abbr></a>
</td>
<td>
The Pdf2Swf adapter
</td>
</tr>
<tr>
<td>
<a href="SwfTools/Binary/Swfextract.html" target="main"><abbr title="SwfTools\Binary\Swfextract">SwfTools\Binary\Swfextract</abbr></a>
</td>
<td>
</td>
</tr>
<tr>
<td>
<a href="SwfTools/Binary/Swfrender.html" target="main"><abbr title="SwfTools\Binary\Swfrender">SwfTools\Binary\Swfrender</abbr></a>
</td>
<td>
</td>
</tr>
<tr>
<td>
<a href="SwfTools/Configuration.html" target="main"><abbr title="SwfTools\Configuration">SwfTools\Configuration</abbr></a>
</td>
<td>
</td>
</tr>
<tr>
<td>
<a href="SwfTools/EmbeddedObject.html" target="main"><abbr title="SwfTools\EmbeddedObject">SwfTools\EmbeddedObject</abbr></a>
</td>
<td>
</td>
</tr>
<tr>
<td>
<a href="SwfTools/Exception/BinaryNotFoundException.html" target="main"><abbr title="SwfTools\Exception\BinaryNotFoundException">SwfTools\Exception\BinaryNotFoundException</abbr></a>
</td>
<td>
</td>
</tr>
<tr>
<td>
<em> <a href="SwfTools/Exception/ExceptionInterface.html" target="main"><abbr title="SwfTools\Exception\ExceptionInterface">SwfTools\Exception\ExceptionInterface</abbr></a>
</em> </td>
<td>
</td>
</tr>
<tr>
<td>
<a href="SwfTools/Exception/InvalidArgumentException.html" target="main"><abbr title="SwfTools\Exception\InvalidArgumentException">SwfTools\Exception\InvalidArgumentException</abbr></a>
</td>
<td>
</td>
</tr>
<tr>
<td>
<a href="SwfTools/Exception/LogicException.html" target="main"><abbr title="SwfTools\Exception\LogicException">SwfTools\Exception\LogicException</abbr></a>
</td>
<td>
</td>
</tr>
<tr>
<td>
<a href="SwfTools/Exception/RuntimeException.html" target="main"><abbr title="SwfTools\Exception\RuntimeException">SwfTools\Exception\RuntimeException</abbr></a>
</td>
<td>
</td>
</tr>
<tr>
<td>
<a href="SwfTools/Processor/File.html" target="main"><abbr title="SwfTools\Processor\File">SwfTools\Processor\File</abbr></a>
</td>
<td>
</td>
</tr>
<tr>
<td>
<a href="SwfTools/Processor/FlashFile.html" target="main"><abbr title="SwfTools\Processor\FlashFile">SwfTools\Processor\FlashFile</abbr></a>
</td>
<td>
</td>
</tr>
<tr>
<td>
<a href="SwfTools/Processor/PDFFile.html" target="main"><abbr title="SwfTools\Processor\PDFFile">SwfTools\Processor\PDFFile</abbr></a>
</td>
<td>
</td>
</tr>
<tr>
<td>
<a href="SwfTools/SwfToolsServiceProvider.html" target="main"><abbr title="SwfTools\SwfToolsServiceProvider">SwfTools\SwfToolsServiceProvider</abbr></a>
</td>
<td>
</td>
</tr>
</table>
</div>
<div id="footer">
Generated by <a href="http://sami.sensiolabs.org/" target="_top">Sami, the API Documentation Generator</a>.
</div>
</body>
</html>

View File

@@ -0,0 +1,214 @@
/*
Copyright (c) 2009 Vladimir Kolesnikov
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
a {
color: #00F;
text-decoration: none;
}
a:hover {
color: #77F;
text-decoration: underline;
}
body, td, p {
font-family: "Bitstream Vera Sans", Verdana, Arial, Helvetica, sans-serif;
background: #FFF;
color: #000;
margin: 0px;
font-size: small;
}
p {
margin-top: 0.5em;
margin-bottom: 0.5em;
}
#content {
margin: 2em;
margin-left: 3.5em;
margin-right: 3.5em;
}
#description p {
margin-bottom: 0.5em;
}
.sectiontitle {
margin-top: 1em;
margin-bottom: 1em;
padding: 0.5em;
padding-left: 2em;
background: #005;
color: #FFF;
font-weight: bold;
}
.attr-rw {
padding-left: 1em;
padding-right: 1em;
text-align: center;
color: #055;
}
.attr-name {
font-weight: bold;
}
.attr-desc {
}
.attr-desc p {
margin-top: 0;
}
.attr-value {
font-family: monospace;
}
.file-title-prefix {
font-size: large;
}
.file-title {
font-size: large;
font-weight: bold;
background: #005;
color: #FFF;
}
.banner {
background: #005;
color: #FFF;
border: 1px solid black;
padding: 1em;
}
.banner td {
background: transparent;
color: #FFF;
}
h1 a, h2 a, .sectiontitle a, .banner a {
color: #FF0;
}
h1 a:hover, h2 a:hover, .sectiontitle a:hover, .banner a:hover {
color: #FF7;
}
.dyn-source {
display: none;
background: #fffde8;
color: #000;
border: #ffe0bb dotted 1px;
margin: 0.5em 2em 0.5em 2em;
padding: 0.5em;
}
.dyn-source .cmt {
color: #00F;
font-style: italic;
}
.dyn-source .kw {
color: #070;
font-weight: bold;
}
.method {
margin-left: 1em;
margin-right: 1em;
margin-bottom: 1em;
}
.description pre {
padding: 0.5em;
border: #ffe0bb dotted 1px;
background: #fffde8;
}
.method .title {
font-family: monospace;
font-size: large;
border-bottom: 1px dashed black;
margin-bottom: 0.3em;
padding-bottom: 0.1em;
}
.method .description, .method .sourcecode {
margin-left: 1em;
}
.description p, .sourcecode p {
margin-bottom: 0.5em;
}
.method .sourcecode p.source-link {
text-indent: 0em;
margin-top: 0.5em;
}
.method .aka {
margin-top: 0.3em;
margin-left: 1em;
font-style: italic;
text-indent: 2em;
}
h1 {
padding: 1em;
margin-left: -1.5em;
font-size: x-large;
font-weight: bold;
color: #FFF;
background: #007;
}
h2 {
padding: 0.5em 1em 0.5em 1em;
margin-left: -1.5em;
font-size: large;
font-weight: bold;
color: #FFF;
background: #009;
}
h3, h4, h5, h6 {
color: #220088;
border-bottom: #5522bb solid 1px;
}
.sourcecode > pre {
padding: 0.5em;
border: 1px dotted black;
background: #FFE;
}
dt {
font-weight: bold
}
dd {
margin-bottom: 0.7em;
}

View File

@@ -0,0 +1,427 @@
/*
Copyright (c) 2009 Vladimir Kolesnikov
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
/* Panel (begin) */
.panel
{
position: absolute;
width: 100%;
height: 100%;
top: 0;
left: 0;
background: #FFF;
z-index: 2;
font-family: "Helvetica Neue", "Arial", sans-serif;
//zoom: 1;
}
.panel_tree .results,
.panel_results .tree
{
display: none;
}
/* Header with search box (begin) */
.panel .header
{
width: 100%;
height: 59px;
border-bottom: 1px solid #666;
position: relative;
left: 0; top: 0;
background: #e8e8e8;
}
.panel .header div.nav
{
padding-top: 7px;
margin: 0 7px;
}
.panel .header table
{
height: 29px;
width: 100%;
}
.panel .header table td
{
vertical-align: middle;
text-align: middle;
}
.panel .header form
{
float: right;
text-align: bottom;
}
.panel .header h1
{
float: left;
font-size: 14px;
font-weight: normal;
color: #777;
text-align: bottom;
}
.panel .header input
{
width: 100%;
box-sizing: border-box;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
display: inline-block;
-webkit-appearance: searchfield;
height: 22px;
//height: auto;
}
/* Header with search box (end) */
/* Results (begin) */
.panel .result
{
position: absolute;
top: 60px;
bottom: 0;
left: 0;
width: 100%;
//height: expression((this.parentNode.offsetHeight - 31));
overflow-y: scroll;
overflow-x: hidden;
-overflow-y: hidden;
background: #EDF3FE url(../i/results_bg.png);
z-index: 2;
//zoom:1;
}
.panel .result ul
{
font-size: 0.8em;
width: 100%;
background: #EDF3FE url(../i/results_bg.png);
//zoom:1;
}
.panel .result ul li
{
height: 46px;
-height: 50px;
//display: inline;
//width: 100%;
//zoom: 1;
overflow: hidden;
padding: 4px 10px 0 10px;
cursor: pointer;
}
.panel .result ul li h1
{
font-size: 13px;
font-weight: normal;
color: #333;
margin-bottom: 2px;
white-space: nowrap;
}
.panel .result ul li p
{
font-size: 11px;
color: #333;
margin-bottom: 2px;
white-space: nowrap;
}
.panel .result ul li h1 i,
.panel .result ul li p.snippet
{
color: #999;
}
.panel .result ul li b
{
color: #000;
}
.panel .result ul li.current
{
background: #3875D7;
}
.panel .result ul li.current h1,
.panel .result ul li.current p
{
color: #DDD;
}
.panel .result ul li.current h1 i,
.panel .result ul li.current p.snippet
{
color: #AAA;
}
.panel .result ul li.current b
{
color: #FFF;
}
.panel .result ul li:hover,
.panel .result ul li.selected
{
background: #d0d0d0;
}
.panel .result ul li.current:hover
{
background: #2965C0;
}
.panel .result ul li .badge
{
margin-right: 0.4em;
margin-left: -0.2em;
padding: 0 0.2em;
color: #000;
}
.panel .result ul li .badge_1
{
background: #ACDBF4;
}
.panel .result ul li.current .badge_1
{
background: #97BFD7;
}
.panel .result ul li .badge_2
{
background: #ACF3C3;
}
.panel .result ul li.current .badge_2
{
background: #98D7AC;
}
.panel .result ul li .badge_3
{
background: #E0F3AC;
}
.panel .result ul li.current .badge_3
{
background: #C4D798;
}
.panel .result ul li .badge_4
{
background: #D7CA98;
}
.panel .result ul li.current .badge_4
{
background: #A6B0AC;
}
.panel .result ul li .badge_5
{
background: #F3C8AC;
}
.panel .result ul li.current .badge_5
{
background: #D7B198;
}
.panel .result ul li .badge_6
{
background: #F3ACC3;
}
.panel .result ul li.current .badge_6
{
background: #D798AB;
}
/* Results (end) */
/* Tree (begin) */ /**/
.panel .tree
{
position: absolute;
top: 60px;
bottom: 0;
left: 0;
width: 100%;
//zoom: 1;
//height: expression((this.parentNode.offsetHeight - 31));
overflow-y: scroll;
overflow-x: hidden;
-overflow-y: hidden;
background: #EDF3FE url(../i/tree_bg.png);
z-index: 30;
}
.panel .tree ul
{
background: #EDF3FE url(../i/tree_bg.png);
}
.panel .tree li
{
cursor: pointer;
overflow: hidden;
//height: 23px;
//display: inline;
//zoom: 1;
//width: 100%;
}
.panel .tree li .content
{
padding-left: 18px;
padding-top: 5px;
height: 18px;
overflow: hidden;
position: relative;
}
.panel .tree li .icon
{
width: 10px;
height: 9px;
background: url(../i/arrows.png);
background-position: 0 -9px;
position: absolute;
left: 1px;
top: 8px;
cursor: default;
}
.panel .tree li.closed .icon
{
background-position: 0 0;
}
.panel .tree ul li h1
{
font-size: 13px;
font-weight: normal;
color: #000;
margin-bottom: 2px;
white-space: nowrap;
}
.panel .tree ul li p
{
font-size: 11px;
color: #666;
margin-bottom: 2px;
white-space: nowrap;
}
.panel .tree ul li h1 i
{
color: #999;
font-style: normal;
}
.panel .tree ul li.empty
{
cursor: text;
}
.panel .tree ul li.empty h1,
.panel .tree ul li.empty p
{
color: #666;
font-style: italic;
}
.panel .tree ul li.current
{
background: #3875D7;
}
.panel .tree ul li.current .icon
{
background-position: -10px -9px;
}
.panel .tree ul li.current.closed .icon
{
background-position: -10px 0;
}
.panel .tree ul li.current h1
{
color: #FFF;
}
.panel .tree ul li.current p
{
color: #CCC;
}
.panel .tree ul li.current.empty h1,
.panel .tree ul li.current.empty p
{
color: #999;
}
.panel .tree ul li:hover
{
background: #d0d0d0;
}
.panel .tree ul li.current:hover
{
background: #2965C0;
}
.panel .tree .stopper
{
display: none;
}
/* Tree (end) */ /**/
/* Panel (end) */
.panel .loader
{
text-align: center;
margin-top: 2px;
width: 100%;
height: 59px;
}
.panel .loader img
{
vertical-align: middle;
}

View File

@@ -0,0 +1,53 @@
/* http://meyerweb.com/eric/tools/css/reset/ */
/* v1.0 | 20080212 */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, font, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td {
margin: 0;
padding: 0;
border: 0;
outline: 0;
font-size: 100%;
vertical-align: baseline;
background: transparent;
}
body {
line-height: 1;
}
ol, ul {
list-style: none;
}
blockquote, q {
quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
content: '';
content: none;
}
/* remember to define focus styles! */
:focus {
outline: 0;
}
/* remember to highlight inserts somehow! */
ins {
text-decoration: none;
}
del {
text-decoration: line-through;
}
/* tables still need 'cellspacing="0"' in the markup */
table {
border-collapse: collapse;
border-spacing: 0;
}

View File

@@ -0,0 +1,121 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="robots" content="index, follow, all" />
<title>Index | PHP-SwfTools API</title>
<link rel="stylesheet" type="text/css" href="stylesheet.css">
</head>
<body id="overview">
<div class="header">
<ul>
<li><a href="classes.html">Classes</a></li>
<li><a href="namespaces.html">Namespaces</a></li>
<li><a href="interfaces.html">Interfaces</a></li>
<li><a href="doc-index.html">Index</a></li>
</ul>
<div id="title">PHP-SwfTools API</div>
<div class="type">Index</div>
A
<a href="#letterB">B</a>
<a href="#letterC">C</a>
D
<a href="#letterE">E</a>
<a href="#letterF">F</a>
<a href="#letterG">G</a>
H
I
J
K
<a href="#letterL">L</a>
M
N
O
<a href="#letterP">P</a>
Q
<a href="#letterR">R</a>
<a href="#letterS">S</a>
<a href="#letterT">T</a>
U
V
W
X
Y
Z
</div>
<div class="content">
<h2 id="letterA">A</h2>
<dl id="index"><dt><a href="SwfTools/Binary/AdapterInterface.html"><abbr title="SwfTools\Binary\AdapterInterface">AdapterInterface</abbr></a> &mdash; <em>Class in namespace <a href="SwfTools/Binary.html">SwfTools\Binary</a></em></dt>
<dd>The adapter interface.</dd> </dl><h2 id="letterB">B</h2>
<dl id="index"><dt><a href="SwfTools/Binary/Binary.html"><abbr title="SwfTools\Binary\Binary">Binary</abbr></a> &mdash; <em>Class in namespace <a href="SwfTools/Binary.html">SwfTools\Binary</a></em></dt>
<dd>The abstract binary adapter</dd><dt><a href="SwfTools/Exception/BinaryNotFoundException.html"><abbr title="SwfTools\Exception\BinaryNotFoundException">BinaryNotFoundException</abbr></a> &mdash; <em>Class in namespace <a href="SwfTools/Exception.html">SwfTools\Exception</a></em></dt>
<dd></dd><dt><a href="SwfTools/SwfToolsServiceProvider.html#method_boot"><abbr title="SwfTools\SwfToolsServiceProvider">SwfToolsServiceProvider</abbr>::boot</a>() &mdash; <em>Method in class <a href="SwfTools/SwfToolsServiceProvider.html"><abbr title="SwfTools\SwfToolsServiceProvider">SwfToolsServiceProvider</abbr></a></em></dt>
<dd></dd> </dl><h2 id="letterC">C</h2>
<dl id="index"><dt><a href="SwfTools/Configuration.html"><abbr title="SwfTools\Configuration">Configuration</abbr></a> &mdash; <em>Class in namespace <a href="SwfTools.html">SwfTools</a></em></dt>
<dd></dd><dt><a href="SwfTools/Processor/File.html#method_close"><abbr title="SwfTools\Processor\File">File</abbr>::close</a>() &mdash; <em>Method in class <a href="SwfTools/Processor/File.html"><abbr title="SwfTools\Processor\File">File</abbr></a></em></dt>
<dd></dd> </dl><h2 id="letterD">D</h2>
<dl id="index"><dt><a href="SwfTools/EmbeddedObject.html#method_detectType"><abbr title="SwfTools\EmbeddedObject">EmbeddedObject</abbr>::detectType</a>() &mdash; <em>Method in class <a href="SwfTools/EmbeddedObject.html"><abbr title="SwfTools\EmbeddedObject">EmbeddedObject</abbr></a></em></dt>
<dd>Detect type based on the raw output</dd> </dl><h2 id="letterE">E</h2>
<dl id="index"><dt><a href="SwfTools/Binary/Swfextract.html#method_extract"><abbr title="SwfTools\Binary\Swfextract">Swfextract</abbr>::extract</a>() &mdash; <em>Method in class <a href="SwfTools/Binary/Swfextract.html"><abbr title="SwfTools\Binary\Swfextract">Swfextract</abbr></a></em></dt>
<dd>Execute the command to extract an embedded object from a flash file</dd><dt><a href="SwfTools/EmbeddedObject.html"><abbr title="SwfTools\EmbeddedObject">EmbeddedObject</abbr></a> &mdash; <em>Class in namespace <a href="SwfTools.html">SwfTools</a></em></dt>
<dd></dd><dt><a href="SwfTools/Exception/ExceptionInterface.html"><abbr title="SwfTools\Exception\ExceptionInterface">ExceptionInterface</abbr></a> &mdash; <em>Class in namespace <a href="SwfTools/Exception.html">SwfTools\Exception</a></em></dt>
<dd></dd><dt><a href="SwfTools/Processor/FlashFile.html#method_extractEmbedded"><abbr title="SwfTools\Processor\FlashFile">FlashFile</abbr>::extractEmbedded</a>() &mdash; <em>Method in class <a href="SwfTools/Processor/FlashFile.html"><abbr title="SwfTools\Processor\FlashFile">FlashFile</abbr></a></em></dt>
<dd>Extract the specified Embedded file</dd><dt><a href="SwfTools/Processor/FlashFile.html#method_extractFirstImage"><abbr title="SwfTools\Processor\FlashFile">FlashFile</abbr>::extractFirstImage</a>() &mdash; <em>Method in class <a href="SwfTools/Processor/FlashFile.html"><abbr title="SwfTools\Processor\FlashFile">FlashFile</abbr></a></em></dt>
<dd>Extract the first embedded image found</dd> </dl><h2 id="letterF">F</h2>
<dl id="index"><dt><a href="SwfTools/Processor/File.html"><abbr title="SwfTools\Processor\File">File</abbr></a> &mdash; <em>Class in namespace <a href="SwfTools/Processor.html">SwfTools\Processor</a></em></dt>
<dd></dd><dt><a href="SwfTools/Processor/FlashFile.html"><abbr title="SwfTools\Processor\FlashFile">FlashFile</abbr></a> &mdash; <em>Class in namespace <a href="SwfTools/Processor.html">SwfTools\Processor</a></em></dt>
<dd></dd> </dl><h2 id="letterG">G</h2>
<dl id="index"><dt><a href="SwfTools/Binary/AdapterInterface.html#method_getVersion"><abbr title="SwfTools\Binary\AdapterInterface">AdapterInterface</abbr>::getVersion</a>() &mdash; <em>Method in class <a href="SwfTools/Binary/AdapterInterface.html"><abbr title="SwfTools\Binary\AdapterInterface">AdapterInterface</abbr></a></em></dt>
<dd>Return the version of the binary adapter</dd><dt><a href="SwfTools/Binary/Binary.html#method_getTimeout"><abbr title="SwfTools\Binary\Binary">Binary</abbr>::getTimeout</a>() &mdash; <em>Method in class <a href="SwfTools/Binary/Binary.html"><abbr title="SwfTools\Binary\Binary">Binary</abbr></a></em></dt>
<dd>Get the timeout for the underlyning processes ; 0 means no timeout</dd><dt><a href="SwfTools/Binary/Binary.html#method_getVersion"><abbr title="SwfTools\Binary\Binary">Binary</abbr>::getVersion</a>() &mdash; <em>Method in class <a href="SwfTools/Binary/Binary.html"><abbr title="SwfTools\Binary\Binary">Binary</abbr></a></em></dt>
<dd>Try to get the version of the binary.</dd><dt><a href="SwfTools/Configuration.html#method_get"><abbr title="SwfTools\Configuration">Configuration</abbr>::get</a>() &mdash; <em>Method in class <a href="SwfTools/Configuration.html"><abbr title="SwfTools\Configuration">Configuration</abbr></a></em></dt>
<dd></dd><dt><a href="SwfTools/EmbeddedObject.html#method_getOption"><abbr title="SwfTools\EmbeddedObject">EmbeddedObject</abbr>::getOption</a>() &mdash; <em>Method in class <a href="SwfTools/EmbeddedObject.html"><abbr title="SwfTools\EmbeddedObject">EmbeddedObject</abbr></a></em></dt>
<dd></dd><dt><a href="SwfTools/EmbeddedObject.html#method_getType"><abbr title="SwfTools\EmbeddedObject">EmbeddedObject</abbr>::getType</a>() &mdash; <em>Method in class <a href="SwfTools/EmbeddedObject.html"><abbr title="SwfTools\EmbeddedObject">EmbeddedObject</abbr></a></em></dt>
<dd></dd><dt><a href="SwfTools/EmbeddedObject.html#method_getId"><abbr title="SwfTools\EmbeddedObject">EmbeddedObject</abbr>::getId</a>() &mdash; <em>Method in class <a href="SwfTools/EmbeddedObject.html"><abbr title="SwfTools\EmbeddedObject">EmbeddedObject</abbr></a></em></dt>
<dd></dd> </dl><h2 id="letterH">H</h2>
<dl id="index"><dt><a href="SwfTools/Configuration.html#method_has"><abbr title="SwfTools\Configuration">Configuration</abbr>::has</a>() &mdash; <em>Method in class <a href="SwfTools/Configuration.html"><abbr title="SwfTools\Configuration">Configuration</abbr></a></em></dt>
<dd></dd> </dl><h2 id="letterI">I</h2>
<dl id="index"><dt><a href="SwfTools/Exception/InvalidArgumentException.html"><abbr title="SwfTools\Exception\InvalidArgumentException">InvalidArgumentException</abbr></a> &mdash; <em>Class in namespace <a href="SwfTools/Exception.html">SwfTools\Exception</a></em></dt>
<dd></dd> </dl><h2 id="letterL">L</h2>
<dl id="index"><dt><a href="SwfTools/Binary/AdapterInterface.html#method_load"><abbr title="SwfTools\Binary\AdapterInterface">AdapterInterface</abbr>::load</a>() &mdash; <em>Method in class <a href="SwfTools/Binary/AdapterInterface.html"><abbr title="SwfTools\Binary\AdapterInterface">AdapterInterface</abbr></a></em></dt>
<dd>Load the binary adapter.</dd><dt><a href="SwfTools/Binary/Pdf2swf.html#method_load"><abbr title="SwfTools\Binary\Pdf2swf">Pdf2swf</abbr>::load</a>() &mdash; <em>Method in class <a href="SwfTools/Binary/Pdf2swf.html"><abbr title="SwfTools\Binary\Pdf2swf">Pdf2swf</abbr></a></em></dt>
<dd>Factory method to build the adapter</dd><dt><a href="SwfTools/Binary/Swfextract.html#method_listEmbedded"><abbr title="SwfTools\Binary\Swfextract">Swfextract</abbr>::listEmbedded</a>() &mdash; <em>Method in class <a href="SwfTools/Binary/Swfextract.html"><abbr title="SwfTools\Binary\Swfextract">Swfextract</abbr></a></em></dt>
<dd>Execute the command to list the embedded objects</dd><dt><a href="SwfTools/Binary/Swfextract.html#method_load"><abbr title="SwfTools\Binary\Swfextract">Swfextract</abbr>::load</a>() &mdash; <em>Method in class <a href="SwfTools/Binary/Swfextract.html"><abbr title="SwfTools\Binary\Swfextract">Swfextract</abbr></a></em></dt>
<dd>Factory method to build the binary</dd><dt><a href="SwfTools/Binary/Swfrender.html#method_load"><abbr title="SwfTools\Binary\Swfrender">Swfrender</abbr>::load</a>() &mdash; <em>Method in class <a href="SwfTools/Binary/Swfrender.html"><abbr title="SwfTools\Binary\Swfrender">Swfrender</abbr></a></em></dt>
<dd>Factory method to build the binary</dd><dt><a href="SwfTools/Exception/LogicException.html"><abbr title="SwfTools\Exception\LogicException">LogicException</abbr></a> &mdash; <em>Class in namespace <a href="SwfTools/Exception.html">SwfTools\Exception</a></em></dt>
<dd></dd><dt><a href="SwfTools/Processor/FlashFile.html#method_listEmbeddedObjects"><abbr title="SwfTools\Processor\FlashFile">FlashFile</abbr>::listEmbeddedObjects</a>() &mdash; <em>Method in class <a href="SwfTools/Processor/FlashFile.html"><abbr title="SwfTools\Processor\FlashFile">FlashFile</abbr></a></em></dt>
<dd>List all embedded object of the current flash file</dd> </dl><h2 id="letterO">O</h2>
<dl id="index"><dt><a href="SwfTools/Processor/File.html#method_open"><abbr title="SwfTools\Processor\File">File</abbr>::open</a>() &mdash; <em>Method in class <a href="SwfTools/Processor/File.html"><abbr title="SwfTools\Processor\File">File</abbr></a></em></dt>
<dd></dd> </dl><h2 id="letterP">P</h2>
<dl id="index"><dt><a href="SwfTools/Binary/Pdf2swf.html"><abbr title="SwfTools\Binary\Pdf2swf">Pdf2swf</abbr></a> &mdash; <em>Class in namespace <a href="SwfTools/Binary.html">SwfTools\Binary</a></em></dt>
<dd>The Pdf2Swf adapter</dd><dt><a href="SwfTools/Processor/PDFFile.html"><abbr title="SwfTools\Processor\PDFFile">PDFFile</abbr></a> &mdash; <em>Class in namespace <a href="SwfTools/Processor.html">SwfTools\Processor</a></em></dt>
<dd></dd> </dl><h2 id="letterR">R</h2>
<dl id="index"><dt><a href="SwfTools/Binary/Swfrender.html#method_render"><abbr title="SwfTools\Binary\Swfrender">Swfrender</abbr>::render</a>() &mdash; <em>Method in class <a href="SwfTools/Binary/Swfrender.html"><abbr title="SwfTools\Binary\Swfrender">Swfrender</abbr></a></em></dt>
<dd></dd><dt><a href="SwfTools/Exception/RuntimeException.html"><abbr title="SwfTools\Exception\RuntimeException">RuntimeException</abbr></a> &mdash; <em>Class in namespace <a href="SwfTools/Exception.html">SwfTools\Exception</a></em></dt>
<dd></dd><dt><a href="SwfTools/Processor/FlashFile.html#method_render"><abbr title="SwfTools\Processor\FlashFile">FlashFile</abbr>::render</a>() &mdash; <em>Method in class <a href="SwfTools/Processor/FlashFile.html"><abbr title="SwfTools\Processor\FlashFile">FlashFile</abbr></a></em></dt>
<dd>Render the flash to PNG file</dd><dt><a href="SwfTools/SwfToolsServiceProvider.html#method_register"><abbr title="SwfTools\SwfToolsServiceProvider">SwfToolsServiceProvider</abbr>::register</a>() &mdash; <em>Method in class <a href="SwfTools/SwfToolsServiceProvider.html"><abbr title="SwfTools\SwfToolsServiceProvider">SwfToolsServiceProvider</abbr></a></em></dt>
<dd></dd> </dl><h2 id="letterS">S</h2>
<dl id="index"><dt><a href="SwfTools/Binary/Binary.html#method_setTimeout"><abbr title="SwfTools\Binary\Binary">Binary</abbr>::setTimeout</a>() &mdash; <em>Method in class <a href="SwfTools/Binary/Binary.html"><abbr title="SwfTools\Binary\Binary">Binary</abbr></a></em></dt>
<dd>Set the timeout for the underlying processes ; 0 means no timeout</dd><dt><a href="SwfTools/Binary/Swfextract.html"><abbr title="SwfTools\Binary\Swfextract">Swfextract</abbr></a> &mdash; <em>Class in namespace <a href="SwfTools/Binary.html">SwfTools\Binary</a></em></dt>
<dd></dd><dt><a href="SwfTools/Binary/Swfrender.html"><abbr title="SwfTools\Binary\Swfrender">Swfrender</abbr></a> &mdash; <em>Class in namespace <a href="SwfTools/Binary.html">SwfTools\Binary</a></em></dt>
<dd></dd><dt><a href="SwfTools/SwfToolsServiceProvider.html"><abbr title="SwfTools\SwfToolsServiceProvider">SwfToolsServiceProvider</abbr></a> &mdash; <em>Class in namespace <a href="SwfTools.html">SwfTools</a></em></dt>
<dd></dd> </dl><h2 id="letterT">T</h2>
<dl id="index"><dt><a href="SwfTools/Binary/Pdf2swf.html#method_toSwf"><abbr title="SwfTools\Binary\Pdf2swf">Pdf2swf</abbr>::toSwf</a>() &mdash; <em>Method in class <a href="SwfTools/Binary/Pdf2swf.html"><abbr title="SwfTools\Binary\Pdf2swf">Pdf2swf</abbr></a></em></dt>
<dd></dd><dt><a href="SwfTools/Processor/PDFFile.html#method_toSwf"><abbr title="SwfTools\Processor\PDFFile">PDFFile</abbr>::toSwf</a>() &mdash; <em>Method in class <a href="SwfTools/Processor/PDFFile.html"><abbr title="SwfTools\Processor\PDFFile">PDFFile</abbr></a></em></dt>
<dd></dd> </dl><h2 id="letter_">_</h2>
<dl id="index"><dt><a href="SwfTools/Binary/Binary.html#method___construct"><abbr title="SwfTools\Binary\Binary">Binary</abbr>::__construct</a>() &mdash; <em>Method in class <a href="SwfTools/Binary/Binary.html"><abbr title="SwfTools\Binary\Binary">Binary</abbr></a></em></dt>
<dd>The path to the binary</dd><dt><a href="SwfTools/Configuration.html#method___construct"><abbr title="SwfTools\Configuration">Configuration</abbr>::__construct</a>() &mdash; <em>Method in class <a href="SwfTools/Configuration.html"><abbr title="SwfTools\Configuration">Configuration</abbr></a></em></dt>
<dd></dd><dt><a href="SwfTools/EmbeddedObject.html#method___construct"><abbr title="SwfTools\EmbeddedObject">EmbeddedObject</abbr>::__construct</a>() &mdash; <em>Method in class <a href="SwfTools/EmbeddedObject.html"><abbr title="SwfTools\EmbeddedObject">EmbeddedObject</abbr></a></em></dt>
<dd></dd><dt><a href="SwfTools/Processor/File.html#method___construct"><abbr title="SwfTools\Processor\File">File</abbr>::__construct</a>() &mdash; <em>Method in class <a href="SwfTools/Processor/File.html"><abbr title="SwfTools\Processor\File">File</abbr></a></em></dt>
<dd>Build the File processor given the configuration</dd><dt><a href="SwfTools/Processor/File.html#method___destruct"><abbr title="SwfTools\Processor\File">File</abbr>::__destruct</a>() &mdash; <em>Method in class <a href="SwfTools/Processor/File.html"><abbr title="SwfTools\Processor\File">File</abbr></a></em></dt>
<dd></dd><dt><a href="SwfTools/Processor/FlashFile.html#method___destruct"><abbr title="SwfTools\Processor\FlashFile">FlashFile</abbr>::__destruct</a>() &mdash; <em>Method in class <a href="SwfTools/Processor/FlashFile.html"><abbr title="SwfTools\Processor\FlashFile">FlashFile</abbr></a></em></dt>
<dd></dd> </dl> </div>
<div id="footer">
Generated by <a href="http://sami.sensiolabs.org/" target="_top">Sami, the API Documentation Generator</a>.
</div>
</body>
</html>

Binary file not shown.

After

Width:  |  Height:  |  Size: 477 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 696 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 207 B

View File

@@ -0,0 +1,18 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="robots" content="index, follow, all" />
<title>PHP-SwfTools API</title>
<link rel="stylesheet" type="text/css" href="stylesheet.css">
</head>
<frameset cols="20%,80%" frameborder="1" border="1" bordercolor="#bbb" framespacing="1">
<frame src="panel.html" name="index">
<frame src="namespaces.html" name="main">
<noframes>
<body>
Your browser does not support frames. Go to the <a href="namespaces.html">non-frame version</a>.
</body>
</noframes>
</frameset>
</html>

View File

@@ -0,0 +1,43 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="robots" content="index, follow, all" />
<title>Interfaces | PHP-SwfTools API</title>
<link rel="stylesheet" type="text/css" href="stylesheet.css">
</head>
<body id="overview">
<div class="header">
<ul>
<li><a href="classes.html">Classes</a></li>
<li><a href="namespaces.html">Namespaces</a></li>
<li><a href="interfaces.html">Interfaces</a></li>
<li><a href="doc-index.html">Index</a></li>
</ul>
<div id="title">PHP-SwfTools API</div>
<h1>Interfaces</h1>
</div>
<div class="content">
<table>
<tr>
<td><a href="SwfTools/Binary/AdapterInterface.html" target="main"><abbr title="SwfTools\Binary\AdapterInterface">SwfTools\Binary\AdapterInterface</abbr></a></td>
<td class="last">
The adapter interface.
</td>
</tr>
<tr>
<td><a href="SwfTools/Exception/ExceptionInterface.html" target="main"><abbr title="SwfTools\Exception\ExceptionInterface">SwfTools\Exception\ExceptionInterface</abbr></a></td>
<td class="last">
</td>
</tr>
</table>
</div>
<div id="footer">
Generated by <a href="http://sami.sensiolabs.org/" target="_top">Sami, the API Documentation Generator</a>.
</div>
</body>
</html>

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,651 @@
/*
Copyright (c) 2009 Vladimir Kolesnikov
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
Searchdoc = {};
// navigation.js ------------------------------------------
Searchdoc.Navigation = new function() {
this.initNavigation = function() {
var _this = this;
$(document).keydown(function(e) {
_this.onkeydown(e);
}).keyup(function(e) {
_this.onkeyup(e);
});
this.navigationActive = true;
}
this.setNavigationActive = function(state) {
this.navigationActive = state;
this.clearMoveTimeout();
}
this.onkeyup = function(e) {
if (!this.navigationActive) return;
switch(e.keyCode) {
case 37: //Event.KEY_LEFT:
case 38: //Event.KEY_UP:
case 39: //Event.KEY_RIGHT:
case 40: //Event.KEY_DOWN:
case 73: // i - qwerty
case 74: // j
case 75: // k
case 76: // l
case 67: // c - dvorak
case 72: // h
case 84: // t
case 78: // n
this.clearMoveTimeout();
break;
}
}
this.onkeydown = function(e) {
if (!this.navigationActive) return;
switch(e.keyCode) {
case 37: //Event.KEY_LEFT:
case 74: // j (qwerty)
case 72: // h (dvorak)
if (this.moveLeft()) e.preventDefault();
break;
case 38: //Event.KEY_UP:
case 73: // i (qwerty)
case 67: // c (dvorak)
if (e.keyCode == 38 || e.ctrlKey) {
if (this.moveUp()) e.preventDefault();
this.startMoveTimeout(false);
}
break;
case 39: //Event.KEY_RIGHT:
case 76: // l (qwerty)
case 78: // n (dvorak)
if (this.moveRight()) e.preventDefault();
break;
case 40: //Event.KEY_DOWN:
case 75: // k (qwerty)
case 84: // t (dvorak)
if (e.keyCode == 40 || e.ctrlKey) {
if (this.moveDown()) e.preventDefault();
this.startMoveTimeout(true);
}
break;
case 9: //Event.KEY_TAB:
case 13: //Event.KEY_RETURN:
if (this.$current) this.select(this.$current);
break;
}
if (e.ctrlKey && e.shiftKey) this.select(this.$current);
}
this.clearMoveTimeout = function() {
clearTimeout(this.moveTimeout);
this.moveTimeout = null;
}
this.startMoveTimeout = function(isDown) {
if (!$.browser.mozilla && !$.browser.opera) return;
if (this.moveTimeout) this.clearMoveTimeout();
var _this = this;
var go = function() {
if (!_this.moveTimeout) return;
_this[isDown ? 'moveDown' : 'moveUp']();
_this.moveTimout = setTimeout(go, 100);
}
this.moveTimeout = setTimeout(go, 200);
}
this.moveRight = function() {
}
this.moveLeft = function() {
}
this.move = function(isDown) {
}
this.moveUp = function() {
return this.move(false);
}
this.moveDown = function() {
return this.move(true);
}
}
// scrollIntoView.js --------------------------------------
function scrollIntoView(element, view) {
var offset, viewHeight, viewScroll, height;
offset = element.offsetTop;
height = element.offsetHeight;
viewHeight = view.offsetHeight;
viewScroll = view.scrollTop;
if (offset - viewScroll + height > viewHeight) {
view.scrollTop = offset - viewHeight + height;
}
if (offset < viewScroll) {
view.scrollTop = offset;
}
}
// searcher.js --------------------------------------------
Searchdoc.Searcher = function(data) {
this.data = data;
this.handlers = [];
}
Searchdoc.Searcher.prototype = new function() {
var CHUNK_SIZE = 1000, // search is performed in chunks of 1000 for non-bloking user input
MAX_RESULTS = 100, // do not try to find more than 100 results
huid = 1, suid = 1,
runs = 0;
this.find = function(query) {
var queries = splitQuery(query),
regexps = buildRegexps(queries),
highlighters = buildHilighters(queries),
state = { from: 0, pass: 0, limit: MAX_RESULTS, n: suid++},
_this = this;
this.currentSuid = state.n;
if (!query) return;
var run = function() {
// stop current search thread if new search started
if (state.n != _this.currentSuid) return;
var results = performSearch(_this.data, regexps, queries, highlighters, state),
hasMore = (state.limit > 0 && state.pass < 3);
triggerResults.call(_this, results, !hasMore);
if (hasMore) {
setTimeout(run, 2);
}
runs++;
};
runs = 0;
// start search thread
run();
}
/* ----- Events ------ */
this.ready = function(fn) {
fn.huid = huid;
this.handlers.push(fn);
}
/* ----- Utilities ------ */
function splitQuery(query) {
return jQuery.grep(query.split(/(\s+|\(\)?)/), function(string) { return string.match(/\S/) });
}
function buildRegexps(queries) {
return jQuery.map(queries, function(query) { return new RegExp(query.replace(/(.)/g, '([$1])([^$1]*?)'), 'i') });
}
function buildHilighters(queries) {
return jQuery.map(queries, function(query) {
return jQuery.map( query.split(''), function(l, i){ return '\u0001$' + (i*2+1) + '\u0002$' + (i*2+2) } ).join('')
});
}
// function longMatchRegexp(index, longIndex, regexps) {
// for (var i = regexps.length - 1; i >= 0; i--){
// if (!index.match(regexps[i]) && !longIndex.match(regexps[i])) return false;
// };
// return true;
// }
/* ----- Mathchers ------ */
function matchPass1(index, longIndex, queries, regexps) {
if (index.indexOf(queries[0]) != 0) return false;
for (var i=1, l = regexps.length; i < l; i++) {
if (!index.match(regexps[i]) && !longIndex.match(regexps[i])) return false;
};
return true;
}
function matchPass2(index, longIndex, queries, regexps) {
if (index.indexOf(queries[0]) == -1) return false;
for (var i=1, l = regexps.length; i < l; i++) {
if (!index.match(regexps[i]) && !longIndex.match(regexps[i])) return false;
};
return true;
}
function matchPassRegexp(index, longIndex, queries, regexps) {
if (!index.match(regexps[0])) return false;
for (var i=1, l = regexps.length; i < l; i++) {
if (!index.match(regexps[i]) && !longIndex.match(regexps[i])) return false;
};
return true;
}
/* ----- Highlighters ------ */
function highlightRegexp(info, queries, regexps, highlighters) {
var result = createResult(info);
for (var i=0, l = regexps.length; i < l; i++) {
result.title = result.title.replace(regexps[i], highlighters[i]);
if (i > 0)
result.namespace = result.namespace.replace(regexps[i], highlighters[i]);
};
return result;
}
function hltSubstring(string, pos, length) {
return string.substring(0, pos) + '\u0001' + string.substring(pos, pos + length) + '\u0002' + string.substring(pos + length);
}
function highlightQuery(info, queries, regexps, highlighters) {
var result = createResult(info), pos = 0, lcTitle = result.title.toLowerCase();
pos = lcTitle.indexOf(queries[0]);
if (pos != -1) {
result.title = hltSubstring(result.title, pos, queries[0].length);
}
for (var i=1, l = regexps.length; i < l; i++) {
result.title = result.title.replace(regexps[i], highlighters[i]);
result.namespace = result.namespace.replace(regexps[i], highlighters[i]);
};
return result;
}
function createResult(info) {
var result = {};
result.title = info[0];
result.namespace = info[1];
result.path = info[2];
result.params = info[3];
result.snippet = info[4];
result.badge = info[6];
return result;
}
/* ----- Searching ------ */
function performSearch(data, regexps, queries, highlighters, state) {
var searchIndex = data.searchIndex, // search by title first and then by source
longSearchIndex = data.longSearchIndex,
info = data.info,
result = [],
i = state.from,
l = searchIndex.length,
togo = CHUNK_SIZE,
matchFunc, hltFunc;
while (state.pass < 3 && state.limit > 0 && togo > 0) {
if (state.pass == 0) {
matchFunc = matchPass1;
hltFunc = highlightQuery;
} else if (state.pass == 1) {
matchFunc = matchPass2;
hltFunc = highlightQuery;
} else if (state.pass == 2) {
matchFunc = matchPassRegexp;
hltFunc = highlightRegexp;
}
for (; togo > 0 && i < l && state.limit > 0; i++, togo--) {
if (info[i].n == state.n) continue;
if (matchFunc(searchIndex[i], longSearchIndex[i], queries, regexps)) {
info[i].n = state.n;
result.push(hltFunc(info[i], queries, regexps, highlighters));
state.limit--;
}
};
if (searchIndex.length <= i) {
state.pass++;
i = state.from = 0;
} else {
state.from = i;
}
}
return result;
}
function triggerResults(results, isLast) {
jQuery.each(this.handlers, function(i, fn) { fn.call(this, results, isLast) })
}
}
// panel.js -----------------------------------------------
Searchdoc.Panel = function(element, data, tree, frame) {
this.$element = $(element);
this.$input = $('input', element).eq(0);
this.$result = $('.result ul', element).eq(0);
this.frame = frame;
this.$current = null;
this.$view = this.$result.parent();
this.data = data;
this.searcher = new Searchdoc.Searcher(data.index);
this.tree = new Searchdoc.Tree($('.tree', element), tree, this);
this.init();
}
Searchdoc.Panel.prototype = $.extend({}, Searchdoc.Navigation, new function() {
var suid = 1;
this.init = function() {
var _this = this;
var observer = function() {
_this.search(_this.$input[0].value);
};
this.$input.keyup(observer);
this.$input.click(observer); // mac's clear field
this.searcher.ready(function(results, isLast) {
_this.addResults(results, isLast);
})
this.$result.click(function(e) {
_this.$current.removeClass('current');
_this.$current = $(e.target).closest('li').addClass('current');
_this.select();
_this.$input.focus();
});
this.initNavigation();
this.setNavigationActive(false);
}
this.search = function(value, selectFirstMatch) {
value = jQuery.trim(value).toLowerCase();
this.selectFirstMatch = selectFirstMatch;
if (value) {
this.$element.removeClass('panel_tree').addClass('panel_results');
this.tree.setNavigationActive(false);
this.setNavigationActive(true);
} else {
this.$element.addClass('panel_tree').removeClass('panel_results');
this.tree.setNavigationActive(true);
this.setNavigationActive(false);
}
if (value != this.lastQuery) {
this.lastQuery = value;
this.firstRun = true;
this.searcher.find(value);
}
}
this.addResults = function(results, isLast) {
var target = this.$result.get(0);
if (this.firstRun && (results.length > 0 || isLast)) {
this.$current = null;
this.$result.empty();
}
for (var i=0, l = results.length; i < l; i++) {
target.appendChild(renderItem.call(this, results[i]));
};
if (this.firstRun && results.length > 0) {
this.firstRun = false;
this.$current = $(target.firstChild);
this.$current.addClass('current');
if (this.selectFirstMatch) this.select();
scrollIntoView(this.$current[0], this.$view[0])
}
if (jQuery.browser.msie) this.$element[0].className += '';
}
this.open = function(src) {
this.frame.location.href = src;
if (this.frame.highlight) this.frame.highlight(src);
}
this.select = function() {
this.open(this.$current.data('path'));
}
this.move = function(isDown) {
if (!this.$current) return;
var $next = this.$current[isDown ? 'next' : 'prev']();
if ($next.length) {
this.$current.removeClass('current');
$next.addClass('current');
scrollIntoView($next[0], this.$view[0]);
this.$current = $next;
}
return true;
}
function renderItem(result) {
var li = document.createElement('li'),
html = '', badge = result.badge;
html += '<h1>' + hlt(result.title);
if (result.params) html += '<i>' + result.params + '</i>';
html += '</h1>';
html += '<p>';
if (typeof badge != 'undefined') {
html += '<span class="badge badge_' + (badge % 6 + 1) + '">' + escapeHTML(this.data.badges[badge] || 'unknown') + '</span>';
}
html += hlt(result.namespace) + '</p>';
if (result.snippet) html += '<p class="snippet">' + escapeHTML(result.snippet) + '</p>';
li.innerHTML = html;
jQuery.data(li, 'path', result.path);
return li;
}
function hlt(html) {
return escapeHTML(html).replace(/\u0001/g, '<b>').replace(/\u0002/g, '</b>')
}
function escapeHTML(html) {
return html.replace(/[&<>]/g, function(c) {
return '&#' + c.charCodeAt(0) + ';';
});
}
});
// tree.js ------------------------------------------------
Searchdoc.Tree = function(element, tree, panel) {
this.$element = $(element);
this.$list = $('ul', element);
this.tree = tree;
this.panel = panel;
this.init();
}
Searchdoc.Tree.prototype = $.extend({}, Searchdoc.Navigation, new function() {
this.init = function() {
var stopper = document.createElement('li');
stopper.className = 'stopper';
this.$list[0].appendChild(stopper);
for (var i=0, l = this.tree.length; i < l; i++) {
buildAndAppendItem.call(this, this.tree[i], 0, stopper);
};
var _this = this;
this.$list.click(function(e) {
var $target = $(e.target),
$li = $target.closest('li');
if ($target.hasClass('icon')) {
_this.toggle($li);
} else {
_this.select($li);
}
})
this.initNavigation();
if (jQuery.browser.msie) document.body.className += '';
}
this.select = function($li) {
this.highlight($li);
var path = $li[0].searchdoc_tree_data.path;
if (path) this.panel.open(path);
}
this.highlight = function($li) {
if (this.$current) this.$current.removeClass('current');
this.$current = $li.addClass('current');
}
this.toggle = function($li) {
var closed = !$li.hasClass('closed'),
children = $li[0].searchdoc_tree_data.children;
$li.toggleClass('closed');
for (var i=0, l = children.length; i < l; i++) {
toggleVis.call(this, $(children[i].li), !closed);
};
}
this.moveRight = function() {
if (!this.$current) {
this.highlight(this.$list.find('li:first'));
return;
}
if (this.$current.hasClass('closed')) {
this.toggle(this.$current);
}
}
this.moveLeft = function() {
if (!this.$current) {
this.highlight(this.$list.find('li:first'));
return;
}
if (!this.$current.hasClass('closed')) {
this.toggle(this.$current);
} else {
var level = this.$current[0].searchdoc_tree_data.level;
if (level == 0) return;
var $next = this.$current.prevAll('li.level_' + (level - 1) + ':visible:first');
this.$current.removeClass('current');
$next.addClass('current');
scrollIntoView($next[0], this.$element[0]);
this.$current = $next;
}
}
this.move = function(isDown) {
if (!this.$current) {
this.highlight(this.$list.find('li:first'));
return true;
}
var next = this.$current[0];
if (isDown) {
do {
next = next.nextSibling;
if (next && next.style && next.style.display != 'none') break;
} while(next);
} else {
do {
next = next.previousSibling;
if (next && next.style && next.style.display != 'none') break;
} while(next);
}
if (next && next.className.indexOf('stopper') == -1) {
this.$current.removeClass('current');
$(next).addClass('current');
scrollIntoView(next, this.$element[0]);
this.$current = $(next);
}
return true;
}
function toggleVis($li, show) {
var closed = $li.hasClass('closed'),
children = $li[0].searchdoc_tree_data.children;
$li.css('display', show ? '' : 'none')
if (!show && this.$current && $li[0] == this.$current[0]) {
this.$current.removeClass('current');
this.$current = null;
}
for (var i=0, l = children.length; i < l; i++) {
toggleVis.call(this, $(children[i].li), show && !closed);
};
}
function buildAndAppendItem(item, level, before) {
var li = renderItem(item, level),
list = this.$list[0];
item.li = li;
list.insertBefore(li, before);
for (var i=0, l = item[3].length; i < l; i++) {
buildAndAppendItem.call(this, item[3][i], level + 1, before);
};
return li;
}
function renderItem(item, level) {
var li = document.createElement('li'),
cnt = document.createElement('div'),
h1 = document.createElement('h1'),
p = document.createElement('p'),
icon, i;
li.appendChild(cnt);
li.style.paddingLeft = getOffset(level);
cnt.className = 'content';
if (!item[1]) li.className = 'empty ';
cnt.appendChild(h1);
// cnt.appendChild(p);
h1.appendChild(document.createTextNode(item[0]));
// p.appendChild(document.createTextNode(item[4]));
if (item[2]) {
i = document.createElement('i');
i.appendChild(document.createTextNode(item[2]));
h1.appendChild(i);
}
if (item[3].length > 0) {
icon = document.createElement('div');
icon.className = 'icon';
cnt.appendChild(icon);
}
// user direct assignement instead of $()
// it's 8x faster
// $(li).data('path', item[1])
// .data('children', item[3])
// .data('level', level)
// .css('display', level == 0 ? '' : 'none')
// .addClass('level_' + level)
// .addClass('closed');
li.searchdoc_tree_data = {
path: item[1],
children: item[3],
level: level
}
li.style.display = level == 0 ? '' : 'none';
li.className += 'level_' + level + ' closed';
return li;
}
function getOffset(level) {
return 5 + 18*level + 'px';
}
});

View File

@@ -0,0 +1,9 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="robots" content="index, follow, all" />
<title>Namespaces | PHP-SwfTools API</title>
<link rel="stylesheet" type="text/css" href="stylesheet.css">
</head>
</html>

View File

@@ -0,0 +1,43 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="robots" content="index, follow, all" />
<title>Namespaces | PHP-SwfTools API</title>
<link rel="stylesheet" type="text/css" href="stylesheet.css">
</head>
<body id="overview">
<div class="header">
<ul>
<li><a href="classes.html">Classes</a></li>
<li><a href="namespaces.html">Namespaces</a></li>
<li><a href="interfaces.html">Interfaces</a></li>
<li><a href="doc-index.html">Index</a></li>
</ul>
<div id="title">PHP-SwfTools API</div>
<h1>Namespaces</h1>
</div>
<div class="content">
<table>
<tr>
<td><a href="SwfTools.html">SwfTools</a></td>
</tr>
<tr>
<td><a href="SwfTools/Binary.html">SwfTools\Binary</a></td>
</tr>
<tr>
<td><a href="SwfTools/Exception.html">SwfTools\Exception</a></td>
</tr>
<tr>
<td><a href="SwfTools/Processor.html">SwfTools\Processor</a></td>
</tr>
</table>
</div>
<div id="footer">
Generated by <a href="http://sami.sensiolabs.org/" target="_top">Sami, the API Documentation Generator</a>.
</div>
</body>
</html>

View File

@@ -0,0 +1,71 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
<html lang="en">
<head>
<title>PHP-SwfTools API</title>
<link rel="stylesheet" href="css/reset.css" type="text/css" media="screen" charset="utf-8">
<link rel="stylesheet" href="css/panel.css" type="text/css" media="screen" charset="utf-8">
<script src="tree.js" type="text/javascript" charset="utf-8"></script>
<script src="js/jquery-1.3.2.min.js" type="text/javascript" charset="utf-8"></script>
<script src="js/searchdoc.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript" charset="utf-8">
//<![CDATA[
$(document).ready(function(){
$('#version-switcher').change(function() {
window.parent.location = $(this).val()
})
})
$(function() {
$.ajax({
url: 'search_index.js',
dataType: 'script',
success: function () {
$('.loader').css('display', 'none');
var panel = new Searchdoc.Panel($('#panel'), search_data, tree, top.frames[1]);
$('#search').focus();
for (var i=0; i < 2; i++) {
$('.level_' + i).each(function ($li) {
panel.tree.toggle($(this));
});
}
var s = window.parent.location.search.match(/\?q=([^&]+)/);
if (s) {
s = decodeURIComponent(s[1]).replace(/\+/g, ' ');
if (s.length > 0)
{
$('#search').val(s);
panel.search(s, true);
}
}
}
});
})
//]]>
</script>
</head>
<body>
<div class="panel panel_tree" id="panel">
<div class="loader">
<img src="i/loader.gif" /> loading...
</div>
<div class="header">
<div class="nav">
<h1>PHP-SwfTools API</h1>
<div style="clear: both"></div>
<table>
<tr><td><input type="Search" placeholder="Search" autosave="searchdoc" results="10" id="search" autocomplete="off"></td></tr>
</table>
</div>
</div>
<div class="tree">
<ul>
</ul>
</div>
<div class="result">
<ul>
</ul>
</div>
</div>
</body>
</html>

View File

@@ -0,0 +1 @@
C:19:"Sami\Renderer\Index":1528:{a:3:{i:0;a:16:{s:32:"SwfTools\Binary\AdapterInterface";s:40:"1c6530a12190a5ba7e03270fd8d9690cd191c43e";s:22:"SwfTools\Binary\Binary";s:40:"819347a6c3dae182bed8a93e6455b684376bc7a5";s:23:"SwfTools\Binary\Pdf2swf";s:40:"e39bb945e8dd161373c3d5c363e7080f2543f662";s:26:"SwfTools\Binary\Swfextract";s:40:"c3221d241b1fc7bcc6eb08eace27fe5e551205cc";s:25:"SwfTools\Binary\Swfrender";s:40:"0ff0518fedda55aeb72bfab3bf614f95da160e04";s:22:"SwfTools\Configuration";s:40:"4e597efba77e32378a9d1f6120dd0c798b9935da";s:23:"SwfTools\EmbeddedObject";s:40:"4291fdf522d7b5fde06a9947f8ceff47109d517e";s:42:"SwfTools\Exception\BinaryNotFoundException";s:40:"fe9df8b086bd8277c1b312449da5e2d78ce99d3c";s:37:"SwfTools\Exception\ExceptionInterface";s:40:"412fc72f2b2316d7a19835aeee9dec222826fc3e";s:43:"SwfTools\Exception\InvalidArgumentException";s:40:"aafd121cda3420a75c56a40b574b2b5e103f50f9";s:33:"SwfTools\Exception\LogicException";s:40:"c642cfe315ca19481bf0417720b3d20bd225cdef";s:35:"SwfTools\Exception\RuntimeException";s:40:"a9b561ad4798e735aa45989901c08f94871a56fa";s:23:"SwfTools\Processor\File";s:40:"1941368ed533952e6bc1e4eb81d57f0dfd847231";s:28:"SwfTools\Processor\FlashFile";s:40:"61d3b00de4973f89d95096595db2a59702e472dc";s:26:"SwfTools\Processor\PDFFile";s:40:"f23abfc510fbd9e1fa17ade9f4a9ec43654b82eb";s:32:"SwfTools\SwfToolsServiceProvider";s:40:"f3c2ecf512d29ed33021f5531171cfd85bc9fc8e";}i:1;a:1:{i:0;s:6:"master";}i:2;a:4:{i:0;s:8:"SwfTools";i:1;s:15:"SwfTools\Binary";i:2;s:18:"SwfTools\Exception";i:3;s:18:"SwfTools\Processor";}}}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,22 @@
var tree = [["SwfTools","SwfTools.html","",
[["Binary","SwfTools\/Binary.html","",
[["AdapterInterface","SwfTools\/Binary\/AdapterInterface.html","",
[ ]],["Binary","SwfTools\/Binary\/Binary.html","",
[ ]],["Pdf2swf","SwfTools\/Binary\/Pdf2swf.html"," < Binary",
[ ]],["Swfextract","SwfTools\/Binary\/Swfextract.html"," < Binary",
[ ]],["Swfrender","SwfTools\/Binary\/Swfrender.html"," < Binary",
[ ]] ]],["Exception","SwfTools\/Exception.html","",
[["BinaryNotFoundException","SwfTools\/Exception\/BinaryNotFoundException.html"," < RuntimeException",
[ ]],["ExceptionInterface","SwfTools\/Exception\/ExceptionInterface.html","",
[ ]],["InvalidArgumentException","SwfTools\/Exception\/InvalidArgumentException.html"," < InvalidArgumentException",
[ ]],["LogicException","SwfTools\/Exception\/LogicException.html"," < LogicException",
[ ]],["RuntimeException","SwfTools\/Exception\/RuntimeException.html"," < RuntimeException",
[ ]] ]],["Processor","SwfTools\/Processor.html","",
[["File","SwfTools\/Processor\/File.html","",
[ ]],["FlashFile","SwfTools\/Processor\/FlashFile.html"," < File",
[ ]],["PDFFile","SwfTools\/Processor\/PDFFile.html"," < File",
[ ]] ]],["Configuration","SwfTools\/Configuration.html","",
[ ]],["EmbeddedObject","SwfTools\/EmbeddedObject.html","",
[ ]],["SwfToolsServiceProvider","SwfTools\/SwfToolsServiceProvider.html","",
[ ]] ]] ]

View File

@@ -0,0 +1,14 @@
<script>
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-30671300-5']);
_gaq.push(['_setDomainName', 'readthedocs.org']);
_gaq.push(['_setAllowLinker', true]);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>

View File

@@ -0,0 +1,247 @@
{%- set reldelim1 = reldelim1 is not defined and ' &raquo;' or reldelim1 %}
{%- set reldelim2 = reldelim2 is not defined and ' |' or reldelim2 %}
{%- set render_sidebar = (not embedded) and (not theme_nosidebar|tobool) and
(sidebars != []) %}
{%- set url_root = pathto('', 1) %}
{%- if url_root == '#' %}{% set url_root = '' %}{% endif %}
{%- if not embedded and docstitle %}
{%- set titlesuffix = " &mdash; "|safe + docstitle|e %}
{%- else %}
{%- set titlesuffix = "" %}
{%- endif %}
{%- macro script() %}
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT: '{{ url_root }}',
VERSION: '{{ release|e }}',
COLLAPSE_INDEX: false,
FILE_SUFFIX: '{{ '' if no_search_suffix else file_suffix }}',
HAS_SOURCE: {{ has_source|lower }}
};
</script>
{%- for scriptfile in script_files %}
<script type="text/javascript" src="{{ pathto(scriptfile, 1) }}"></script>
{%- endfor %}
{%- endmacro %}
{%- macro css() %}
<link rel="stylesheet" href="{{ pathto('_static/' + style, 1) }}" type="text/css" />
<link rel="stylesheet" href="{{ pathto('_static/pygments.css', 1) }}" type="text/css" />
{%- for cssfile in css_files %}
<link rel="stylesheet" href="{{ pathto(cssfile, 1) }}" type="text/css" />
{%- endfor %}
{%- endmacro %}
{%- macro sidebar() %}
<div class="sphinxsidebarwrapper">
{%- if sidebars != None %}
{#- new style sidebar: explicitly include/exclude templates #}
{%- for sidebartemplate in sidebars %}
{%- include sidebartemplate %}
{%- endfor %}
{%- else %}
{#- old style sidebars: using blocks -- should be deprecated #}
{%- block sidebartoc %}
{%- include "localtoc.html" %}
{%- endblock %}
{%- block sidebarrel %}
{%- include "relations.html" %}
{%- endblock %}
{%- if customsidebar %}
{%- include customsidebar %}
{%- endif %}
{%- block sidebarsearch %}
{%- include "searchbox.html" %}
{%- endblock %}
{%- endif %}
</div>
{%- endmacro %}
<!doctype html>
<!-- paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/ -->
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8" lang="en"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9" lang="en"> <![endif]-->
<!-- Consider adding a manifest.appcache: h5bp.com/d/Offline -->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en"> <!--<![endif]-->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
{{ metatags }}
<title>{{ title|striptags|e }}{{ titlesuffix }}</title>
{{ css() }}
<link rel="search" type="application/opensearchdescription+xml"
title="{% trans docstitle=docstitle|e %}Search within {{ docstitle }}{% endtrans %}"
href="{{ pathto('_static/opensearch.xml', 1) }}"/>
<link rel="shortcut icon" href="{{ pathto('_static/' + favicon, 1) }}"/>
<!-- Grab Google CDN's jQuery, with a protocol relative URL; fall back to local if offline -->
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<script>window.jQuery || document.write('<script src="js/jquery-1.7.2.min.js"><\/script>')</script>
{%- if hasdoc('about') %}
<link rel="author" title="{{ _('About these documents') }}" href="{{ pathto('about') }}" />
{%- endif %}
{%- if hasdoc('genindex') %}
<link rel="index" title="{{ _('Index') }}" href="{{ pathto('genindex') }}" />
{%- endif %}
{%- if hasdoc('search') %}
<link rel="search" title="{{ _('Search') }}" href="{{ pathto('search') }}" />
{%- endif %}
{%- if hasdoc('copyright') %}
<link rel="copyright" title="{{ _('Copyright') }}" href="{{ pathto('copyright') }}" />
{%- endif %}
<link rel="top" title="{{ docstitle|e }}" href="{{ pathto('index') }}" />
{%- if parents %}
<link rel="up" title="{{ parents[-1].title|striptags|e }}" href="{{ parents[-1].link|e }}" />
{%- endif %}
{%- if next %}
<link rel="next" title="{{ next.title|striptags|e }}" href="{{ next.link|e }}" />
{%- endif %}
{%- if prev %}
<link rel="prev" title="{{ prev.title|striptags|e }}" href="{{ prev.link|e }}" />
{%- endif %}
<!-- Use the .htaccess and remove these lines to avoid edge case issues.
More info: h5bp.com/i/378 -->
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="description" content="">
<!-- Mobile viewport optimized: h5bp.com/viewport -->
<meta name="viewport" content="width=device-width">
<!-- Le styles -->
<link href="{{ pathto('_static/less/bootstrap.less', 1) }}" rel="stylesheet/less">
<style type="text/css">
body {
padding-top: 60px;
padding-bottom: 40px;
}
</style>
<!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<!-- Place favicon.ico and apple-touch-icon.png in the root directory: mathiasbynens.be/notes/touch-icons -->
<link rel="stylesheet" href="{{ pathto('_static/style.css', 1) }}">
<!-- More ideas for your <head> here: h5bp.com/d/head-Tips -->
<!-- All JavaScript at the bottom, except this Modernizr build.
Modernizr enables HTML5 elements & feature detects for optimal performance.
Create your own custom Modernizr build: www.modernizr.com/download/ -->
<script src="{{ pathto('_static/js/modernizr-2.5.3.min.js', 1) }}"></script>
<script src="{{ pathto('_static/js/less-1.3.0.min.js', 1) }}" type="text/javascript"></script>
<link rel="stylesheet" href="{{ pathto('_static/bootstrapCustom.css', 1) }}">
<link rel="stylesheet" href="{{ pathto('_static/main.css', 1) }}">
</head>
<body>
<!-- Prompt IE 6 users to install Chrome Frame. Remove this if you support IE 6.
chromium.org/developers/how-tos/chrome-frame-getting-started -->
<!--[if lt IE 7]><p class=chromeframe>Your browser is <em>ancient!</em> <a href="http://browsehappy.com/">Upgrade to a different browser</a> or <a href="http://www.google.com/chromeframe/?redirect=true">install Google Chrome Frame</a> to experience this site.</p><![endif]-->
<div class="navbar navbar-fixed-top">
<div class="navbar-inner">
<div class="container">
<a class="brand" href="{{ pathto(master_doc) }}">{{ project }} documentation</a>
<div class="nav-collapse" id="navigation" class="related">
{{ toctree(collapse=True, maxdepth=1, titles_only=False) }}
<ul class="nav">
<li class="divider-vertical"></li>
<li>
<a target="_blank" href="_static/API/">API</a>
</li>
</ul>
</div>
<ul class="nav pull-right">
<li class="divider-vertical"></li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
Phraseanet Libraries
<b class="caret"></b>
</a>
<ul class="dropdown-menu">
<li>
<a href="http://phraseanet.github.com/" target="_blank">Phraseanet.github.com</a>
</li>
</ul>
</li>
</ul>
</div>
{% include "ribbon.html" %}
</div>
</div>
<div role="main" class="container">
<div class="row-fluid">
<div class="span4">
<div style="width:160px;margin:0 auto">
<img style="width:100%;margin:20px 0;" src="{{ pathto('_static/img/project.png', 1) }}"/>
</div>
{{ sidebar() }}
</div>
<div class="span8">
{%- if prev == None %}
<div class="hero-unit">
<h1>{{ project }} documentation</h1>
<p>
<!-- Your subtitle here-->
</p>
</div>
{%- endif %}
{{ body }}
</div>
</div>
</div>
{%- block footer %}
<hr/>
<footer class="container">
{%- if show_copyright %}
{%- if hasdoc('copyright') %}
{% trans path=pathto('copyright'), copyright=copyright|e %}&copy; <a href="{{ path }}">Copyright</a> {{ copyright }}.{% endtrans %}
{%- else %}
{% trans copyright=copyright|e %}&copy; Copyright {{ copyright }}.{% endtrans %}
{%- endif %}
{%- endif %}
{%- if last_updated %}
{% trans last_updated=last_updated|e %}Last updated on {{ last_updated }}.{% endtrans %}
{%- endif %}
{%- if show_sphinx %}
{% trans sphinx_version=sphinx_version|e %}Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> {{ sphinx_version }}.{% endtrans %}
{%- endif %}
</footer>
{%- endblock %}
<!-- JavaScript at the bottom for fast page loading -->
<!-- scripts concatenated and minified via build script -->
<script src="{{ pathto('_static/js/plugins.js', 1) }}"></script>
<script src="{{ pathto('_static/js/bootstrap.min.js', 1) }}"></script>
<script src="{{ pathto('_static/js/script.js', 1) }}"></script>
<!-- end scripts -->
<!-- Asynchronous Google Analytics snippet. Change UA-XXXXX-X to be your site's ID.
mathiasbynens.be/notes/async-analytics-snippet -->
{{ script() }}
{% include "analytics.html" %}
</body>
</html>

View File

@@ -0,0 +1,12 @@
{#
basic/localtoc.html
~~~~~~~~~~~~~~~~~~~
Sphinx sidebar template: local table of contents.
:copyright: Copyright 2007-2011 by the Sphinx team, see AUTHORS.
:license: BSD, see LICENSE for details.
#}
{%- if display_toc %}
{{ toc }}
{%- endif %}

View File

@@ -0,0 +1,3 @@
<a href="https://github.com/alchemy-fr/PHPSwftools">
<img style="z-index:1200;position: absolute; top: 0; right: 0; border: 0;" src="https://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png" alt="Fork me on GitHub">
</a>

View File

@@ -0,0 +1,21 @@
{#
basic/searchbox.html
~~~~~~~~~~~~~~~~~~~~
Sphinx sidebar template: quick search box.
:copyright: Copyright 2007-2011 by the Sphinx team, see AUTHORS.
:license: BSD, see LICENSE for details.
#}
{%- if pagename != "search" %}
<!--<div id="searchbox" style="display: none" class="well">
<form class="search" action="{{ pathto('search') }}" method="get">
<input placeholder="{{ _('Quick search') }}" class="span2" type="text" name="q" style="margin-bottom:0;" />
<input class="btn btn-primary" type="submit" value="{{ _('Go') }}" />
<input type="hidden" name="check_keywords" value="yes" />
<input type="hidden" name="area" value="default" />
</form>
</div>
<script type="text/javascript">$('#searchbox').show(0);</script>
-->
{%- endif %}

View File

@@ -0,0 +1,86 @@
body, html {
background-color:#FFFFFF;
}
.hero-unit {
background-color: transparent;
}
tt.literal{
font-weight:bold;
}
a.headerlink {
display:none;
}
div.highlight pre {
background-color: #000000;
color:#DDDDDD;
}
.sphinxsidebarwrapper ul {
list-style-type: square;
}
.sphinxsidebarwrapper ul li a{
color: #333333;
font-size:1.05em;
}
h1 {
margin-top: 15px;
}
h2 {
margin-top: 10px;
}
/* -- navigation styles ----- */
.navbar {
line-height:1em;
}
#navigation {
min-height: 29px;
line-height: 30px;
display:inline-block;
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
font-weight: normal;
}
#navigation ul {
display: block;
float: left;
left: 0;
margin: 0 10px 0 0;
position: relative;
}
#navigation li {
float: left;
display:block;
line-height:38px;
}
#navigation ul > li > a {
color: #999999;
float: none;
line-height: 19px;
padding: 10px 10px 11px;
text-decoration: none;
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
}
#navigation li a {
padding:3px 8px;
color: #999;
}
#navigation li.current a {
color: #FFFFFF;
}
#navigation li a:hover {
color: #FFFFFF;
}
#navigation li a:hover, #navigation li a {
text-decoration:none;
}
#navigation li, #ddLinks, #menu {
font-size: 14px;
}
/* -------------------------- */

View File

@@ -0,0 +1,38 @@
h1, h2, h3, h4, h5, h6{
padding: 40px 0 5px;
}
h3{
padding: 40px 0 10px;
}
a, a:hover, a:visited{
color:#0088CC;
text-decoration:underline;
}
.navbar a,
.sphinxsidebarwrapper a{
text-decoration:none;
}
.admonition.note .first.admonition-title {
font-family: century gothic;
font-weight: bold;
text-align : center;
line-height: 30px;
overflow:hidden;
-webkit-border-radius:50px;
-moz-border-radius:50px;
border-radius:50px;
background-color: blue;
box-shadow: 0.5px 0.5px 2px #343434;;
color:white;
width:50px;
margin-right:1em;
float:left;
}
.admonition.note .last {
line-height: 25px;
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 82 KiB

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,11 @@
// usage: log('inside coolFunc', this, arguments);
// paulirish.com/2009/log-a-lightweight-wrapper-for-consolelog/
window.log = function f(){ log.history = log.history || []; log.history.push(arguments); if(this.console) { var args = arguments, newarr; try { args.callee = f.caller } catch(e) {}; newarr = [].slice.call(args); if (typeof console.log === 'object') log.apply.call(console.log, console, newarr); else console.log.apply(console, newarr);}};
// make it safe to use console.log always
(function(a){function b(){}for(var c="assert,count,debug,dir,dirxml,error,exception,group,groupCollapsed,groupEnd,info,log,markTimeline,profile,profileEnd,time,timeEnd,trace,warn".split(","),d;!!(d=c.pop());){a[d]=a[d]||b;}})
(function(){try{console.log();return window.console;}catch(a){return (window.console={});}}());
// place any jQuery/helper plugins in here, instead of separate, slower script files.

View File

@@ -0,0 +1,8 @@
/* Author:
*/

View File

@@ -0,0 +1,28 @@
// ACCORDION
// ---------
// Parent container
.accordion {
margin-bottom: @baseLineHeight;
}
// Group == heading + body
.accordion-group {
margin-bottom: 2px;
border: 1px solid #e5e5e5;
.border-radius(4px);
}
.accordion-heading {
border-bottom: 0;
}
.accordion-heading .accordion-toggle {
display: block;
padding: 8px 15px;
}
// Inner needs the styles because you can't animate properly with any styles on the element
.accordion-inner {
padding: 9px 15px;
border-top: 1px solid #e5e5e5;
}

View File

@@ -0,0 +1,58 @@
// ALERT STYLES
// ------------
// Base alert styles
.alert {
padding: 8px 35px 8px 14px;
margin-bottom: @baseLineHeight;
text-shadow: 0 1px 0 rgba(255,255,255,.5);
background-color: @warningBackground;
border: 1px solid @warningBorder;
.border-radius(4px);
color: @warningText;
}
.alert-heading {
color: inherit;
}
// Adjust close link position
.alert .close {
position: relative;
top: -2px;
right: -21px;
line-height: 18px;
}
// Alternate styles
// ----------------
.alert-success {
background-color: @successBackground;
border-color: @successBorder;
color: @successText;
}
.alert-danger,
.alert-error {
background-color: @errorBackground;
border-color: @errorBorder;
color: @errorText;
}
.alert-info {
background-color: @infoBackground;
border-color: @infoBorder;
color: @infoText;
}
// Block alerts
// ------------------------
.alert-block {
padding-top: 14px;
padding-bottom: 14px;
}
.alert-block > p,
.alert-block > ul {
margin-bottom: 0;
}
.alert-block p + p {
margin-top: 5px;
}

View File

@@ -0,0 +1,36 @@
// BADGES
// ------
// Base
.badge {
padding: 1px 9px 2px;
font-size: @baseFontSize * .925;
font-weight: bold;
white-space: nowrap;
color: @white;
background-color: @grayLight;
.border-radius(9px);
}
// Hover state
.badge:hover {
color: @white;
text-decoration: none;
cursor: pointer;
}
// Colors
.badge-error { background-color: @errorText; }
.badge-error:hover { background-color: darken(@errorText, 10%); }
.badge-warning { background-color: @orange; }
.badge-warning:hover { background-color: darken(@orange, 10%); }
.badge-success { background-color: @successText; }
.badge-success:hover { background-color: darken(@successText, 10%); }
.badge-info { background-color: @infoText; }
.badge-info:hover { background-color: darken(@infoText, 10%); }
.badge-inverse { background-color: @grayDark; }
.badge-inverse:hover { background-color: darken(@grayDark, 10%); }

View File

@@ -0,0 +1,63 @@
/*!
* Bootstrap v2.0.2
*
* Copyright 2012 Twitter, Inc
* Licensed under the Apache License v2.0
* http://www.apache.org/licenses/LICENSE-2.0
*
* Designed and built with all the love in the world @twitter by @mdo and @fat.
*/
// CSS Reset
@import "reset.less";
// Core variables and mixins
@import "variables.less"; // Modify this for custom colors, font-sizes, etc
@import "mixins.less";
// Grid system and page structure
@import "scaffolding.less";
@import "grid.less";
@import "layouts.less";
// Base CSS
@import "type.less";
@import "code.less";
@import "forms.less";
@import "tables.less";
// Components: common
@import "sprites.less";
@import "dropdowns.less";
@import "wells.less";
@import "component-animations.less";
@import "close.less";
// Components: Buttons & Alerts
@import "buttons.less";
@import "button-groups.less";
@import "alerts.less"; // Note: alerts share common CSS with buttons and thus have styles in buttons.less
// Components: Nav
@import "navs.less";
@import "navbar.less";
@import "breadcrumbs.less";
@import "pagination.less";
@import "pager.less";
// Components: Popovers
@import "modals.less";
@import "tooltip.less";
@import "popovers.less";
// Components: Misc
@import "thumbnails.less";
@import "labels.less";
@import "badges.less";
@import "progress-bars.less";
@import "accordion.less";
@import "carousel.less";
@import "hero-unit.less";
// Utility classes
@import "utilities.less"; // Has to be last to override when necessary

View File

@@ -0,0 +1,24 @@
// BREADCRUMBS
// -----------
.breadcrumb {
padding: 7px 14px;
margin: 0 0 @baseLineHeight;
list-style: none;
#gradient > .vertical(@white, #f5f5f5);
border: 1px solid #ddd;
.border-radius(3px);
.box-shadow(inset 0 1px 0 @white);
li {
display: inline-block;
.ie7-inline-block();
text-shadow: 0 1px 0 @white;
}
.divider {
padding: 0 5px;
color: @grayLight;
}
.active a {
color: @grayDark;
}
}

View File

@@ -0,0 +1,172 @@
// BUTTON GROUPS
// -------------
// Make the div behave like a button
.btn-group {
position: relative;
.clearfix(); // clears the floated buttons
.ie7-restore-left-whitespace();
}
// Space out series of button groups
.btn-group + .btn-group {
margin-left: 5px;
}
// Optional: Group multiple button groups together for a toolbar
.btn-toolbar {
margin-top: @baseLineHeight / 2;
margin-bottom: @baseLineHeight / 2;
.btn-group {
display: inline-block;
.ie7-inline-block();
}
}
// Float them, remove border radius, then re-add to first and last elements
.btn-group .btn {
position: relative;
float: left;
margin-left: -1px;
.border-radius(0);
}
// Set corners individual because sometimes a single button can be in a .btn-group and we need :first-child and :last-child to both match
.btn-group .btn:first-child {
margin-left: 0;
-webkit-border-top-left-radius: 4px;
-moz-border-radius-topleft: 4px;
border-top-left-radius: 4px;
-webkit-border-bottom-left-radius: 4px;
-moz-border-radius-bottomleft: 4px;
border-bottom-left-radius: 4px;
}
.btn-group .btn:last-child,
.btn-group .dropdown-toggle {
-webkit-border-top-right-radius: 4px;
-moz-border-radius-topright: 4px;
border-top-right-radius: 4px;
-webkit-border-bottom-right-radius: 4px;
-moz-border-radius-bottomright: 4px;
border-bottom-right-radius: 4px;
}
// Reset corners for large buttons
.btn-group .btn.large:first-child {
margin-left: 0;
-webkit-border-top-left-radius: 6px;
-moz-border-radius-topleft: 6px;
border-top-left-radius: 6px;
-webkit-border-bottom-left-radius: 6px;
-moz-border-radius-bottomleft: 6px;
border-bottom-left-radius: 6px;
}
.btn-group .btn.large:last-child,
.btn-group .large.dropdown-toggle {
-webkit-border-top-right-radius: 6px;
-moz-border-radius-topright: 6px;
border-top-right-radius: 6px;
-webkit-border-bottom-right-radius: 6px;
-moz-border-radius-bottomright: 6px;
border-bottom-right-radius: 6px;
}
// On hover/focus/active, bring the proper btn to front
.btn-group .btn:hover,
.btn-group .btn:focus,
.btn-group .btn:active,
.btn-group .btn.active {
z-index: 2;
}
// On active and open, don't show outline
.btn-group .dropdown-toggle:active,
.btn-group.open .dropdown-toggle {
outline: 0;
}
// Split button dropdowns
// ----------------------
// Give the line between buttons some depth
.btn-group .dropdown-toggle {
padding-left: 8px;
padding-right: 8px;
@shadow: inset 1px 0 0 rgba(255,255,255,.125), inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05);
.box-shadow(@shadow);
*padding-top: 3px;
*padding-bottom: 3px;
}
.btn-group .btn-mini.dropdown-toggle {
padding-left: 5px;
padding-right: 5px;
*padding-top: 1px;
*padding-bottom: 1px;
}
.btn-group .btn-small.dropdown-toggle {
*padding-top: 4px;
*padding-bottom: 4px;
}
.btn-group .btn-large.dropdown-toggle {
padding-left: 12px;
padding-right: 12px;
}
.btn-group.open {
// IE7's z-index only goes to the nearest positioned ancestor, which would
// make the menu appear below buttons that appeared later on the page
*z-index: @zindexDropdown;
// Reposition menu on open and round all corners
.dropdown-menu {
display: block;
margin-top: 1px;
.border-radius(5px);
}
.dropdown-toggle {
background-image: none;
@shadow: inset 0 1px 6px rgba(0,0,0,.15), 0 1px 2px rgba(0,0,0,.05);
.box-shadow(@shadow);
}
}
// Reposition the caret
.btn .caret {
margin-top: 7px;
margin-left: 0;
}
.btn:hover .caret,
.open.btn-group .caret {
.opacity(100);
}
// Carets in other button sizes
.btn-mini .caret {
margin-top: 5px;
}
.btn-small .caret {
margin-top: 6px;
}
.btn-large .caret {
margin-top: 6px;
border-left: 5px solid transparent;
border-right: 5px solid transparent;
border-top: 5px solid @black;
}
// Account for other colors
.btn-primary,
.btn-warning,
.btn-danger,
.btn-info,
.btn-success,
.btn-inverse {
.caret {
border-top-color: @white;
border-bottom-color: @white;
.opacity(75);
}
}

View File

@@ -0,0 +1,187 @@
// BUTTON STYLES
// -------------
// Base styles
// --------------------------------------------------
// Core
.btn {
display: inline-block;
.ie7-inline-block();
padding: 4px 10px 4px;
margin-bottom: 0; // For input.btn
font-size: @baseFontSize;
line-height: @baseLineHeight;
color: @grayDark;
text-align: center;
text-shadow: 0 1px 1px rgba(255,255,255,.75);
vertical-align: middle;
.buttonBackground(@btnBackground, @btnBackgroundHighlight);
border: 1px solid @btnBorder;
border-bottom-color: darken(@btnBorder, 10%);
.border-radius(4px);
@shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05);
.box-shadow(@shadow);
cursor: pointer;
// Give IE7 some love
.ie7-restore-left-whitespace();
}
// Hover state
.btn:hover {
color: @grayDark;
text-decoration: none;
background-color: darken(@white, 10%);
background-position: 0 -15px;
// transition is only when going to hover, otherwise the background
// behind the gradient (there for IE<=9 fallback) gets mismatched
.transition(background-position .1s linear);
}
// Focus state for keyboard and accessibility
.btn:focus {
.tab-focus();
}
// Active state
.btn.active,
.btn:active {
background-image: none;
@shadow: inset 0 2px 4px rgba(0,0,0,.15), 0 1px 2px rgba(0,0,0,.05);
.box-shadow(@shadow);
background-color: darken(@white, 10%);
background-color: darken(@white, 15%) e("\9");
outline: 0;
}
// Disabled state
.btn.disabled,
.btn[disabled] {
cursor: default;
background-image: none;
background-color: darken(@white, 10%);
.opacity(65);
.box-shadow(none);
}
// Button Sizes
// --------------------------------------------------
// Large
.btn-large {
padding: 9px 14px;
font-size: @baseFontSize + 2px;
line-height: normal;
.border-radius(5px);
}
.btn-large [class^="icon-"] {
margin-top: 1px;
}
// Small
.btn-small {
padding: 5px 9px;
font-size: @baseFontSize - 2px;
line-height: @baseLineHeight - 2px;
}
.btn-small [class^="icon-"] {
margin-top: -1px;
}
// Mini
.btn-mini {
padding: 2px 6px;
font-size: @baseFontSize - 2px;
line-height: @baseLineHeight - 4px;
}
// Alternate buttons
// --------------------------------------------------
// Set text color
// -------------------------
.btn-primary,
.btn-primary:hover,
.btn-warning,
.btn-warning:hover,
.btn-danger,
.btn-danger:hover,
.btn-success,
.btn-success:hover,
.btn-info,
.btn-info:hover,
.btn-inverse,
.btn-inverse:hover {
text-shadow: 0 -1px 0 rgba(0,0,0,.25);
color: @white;
}
// Provide *some* extra contrast for those who can get it
.btn-primary.active,
.btn-warning.active,
.btn-danger.active,
.btn-success.active,
.btn-info.active,
.btn-inverse.active {
color: rgba(255,255,255,.75);
}
// Set the backgrounds
// -------------------------
.btn-primary {
.buttonBackground(@btnPrimaryBackground, @btnPrimaryBackgroundHighlight);
}
// Warning appears are orange
.btn-warning {
.buttonBackground(@btnWarningBackground, @btnWarningBackgroundHighlight);
}
// Danger and error appear as red
.btn-danger {
.buttonBackground(@btnDangerBackground, @btnDangerBackgroundHighlight);
}
// Success appears as green
.btn-success {
.buttonBackground(@btnSuccessBackground, @btnSuccessBackgroundHighlight);
}
// Info appears as a neutral blue
.btn-info {
.buttonBackground(@btnInfoBackground, @btnInfoBackgroundHighlight);
}
// Inverse appears as dark gray
.btn-inverse {
.buttonBackground(@btnInverseBackground, @btnInverseBackgroundHighlight);
}
// Cross-browser Jank
// --------------------------------------------------
button.btn,
input[type="submit"].btn {
// Firefox 3.6 only I believe
&::-moz-focus-inner {
padding: 0;
border: 0;
}
// IE7 has some default padding on button controls
*padding-top: 2px;
*padding-bottom: 2px;
&.btn-large {
*padding-top: 7px;
*padding-bottom: 7px;
}
&.btn-small {
*padding-top: 3px;
*padding-bottom: 3px;
}
&.btn-mini {
*padding-top: 1px;
*padding-bottom: 1px;
}
}

View File

@@ -0,0 +1,121 @@
// CAROUSEL
// --------
.carousel {
position: relative;
margin-bottom: @baseLineHeight;
line-height: 1;
}
.carousel-inner {
overflow: hidden;
width: 100%;
position: relative;
}
.carousel {
.item {
display: none;
position: relative;
.transition(.6s ease-in-out left);
}
// Account for jankitude on images
.item > img {
display: block;
line-height: 1;
}
.active,
.next,
.prev { display: block; }
.active {
left: 0;
}
.next,
.prev {
position: absolute;
top: 0;
width: 100%;
}
.next {
left: 100%;
}
.prev {
left: -100%;
}
.next.left,
.prev.right {
left: 0;
}
.active.left {
left: -100%;
}
.active.right {
left: 100%;
}
}
// Left/right controls for nav
// ---------------------------
.carousel-control {
position: absolute;
top: 40%;
left: 15px;
width: 40px;
height: 40px;
margin-top: -20px;
font-size: 60px;
font-weight: 100;
line-height: 30px;
color: @white;
text-align: center;
background: @grayDarker;
border: 3px solid @white;
.border-radius(23px);
.opacity(50);
// we can't have this transition here
// because webkit cancels the carousel
// animation if you trip this while
// in the middle of another animation
// ;_;
// .transition(opacity .2s linear);
// Reposition the right one
&.right {
left: auto;
right: 15px;
}
// Hover state
&:hover {
color: @white;
text-decoration: none;
.opacity(90);
}
}
// Caption for text below images
// -----------------------------
.carousel-caption {
position: absolute;
left: 0;
right: 0;
bottom: 0;
padding: 10px 15px 5px;
background: @grayDark;
background: rgba(0,0,0,.75);
}
.carousel-caption h4,
.carousel-caption p {
color: @white;
}

View File

@@ -0,0 +1,18 @@
// CLOSE ICONS
// -----------
.close {
float: right;
font-size: 20px;
font-weight: bold;
line-height: @baseLineHeight;
color: @black;
text-shadow: 0 1px 0 rgba(255,255,255,1);
.opacity(20);
&:hover {
color: @black;
text-decoration: none;
.opacity(40);
cursor: pointer;
}
}

View File

@@ -0,0 +1,57 @@
// Code.less
// Code typography styles for the <code> and <pre> elements
// --------------------------------------------------------
// Inline and block code styles
code,
pre {
padding: 0 3px 2px;
#font > #family > .monospace;
font-size: @baseFontSize - 1;
color: @grayDark;
.border-radius(3px);
}
// Inline code
code {
padding: 2px 4px;
color: #d14;
background-color: #f7f7f9;
border: 1px solid #e1e1e8;
}
// Blocks of code
pre {
display: block;
padding: (@baseLineHeight - 1) / 2;
margin: 0 0 @baseLineHeight / 2;
font-size: @baseFontSize * .925; // 13px to 12px
line-height: @baseLineHeight;
background-color: #f5f5f5;
border: 1px solid #ccc; // fallback for IE7-8
border: 1px solid rgba(0,0,0,.15);
.border-radius(4px);
white-space: pre;
white-space: pre-wrap;
word-break: break-all;
word-wrap: break-word;
// Make prettyprint styles more spaced out for readability
&.prettyprint {
margin-bottom: @baseLineHeight;
}
// Account for some code outputs that place code tags in pre tags
code {
padding: 0;
color: inherit;
background-color: transparent;
border: 0;
}
}
// Enable scrollable blocks of code
.pre-scrollable {
max-height: 340px;
overflow-y: scroll;
}

View File

@@ -0,0 +1,20 @@
// COMPONENT ANIMATIONS
// --------------------
.fade {
.transition(opacity .15s linear);
opacity: 0;
&.in {
opacity: 1;
}
}
.collapse {
.transition(height .35s ease);
position:relative;
overflow:hidden;
height: 0;
&.in {
height: auto;
}
}

View File

@@ -0,0 +1,148 @@
// DROPDOWN MENUS
// --------------
// Use the .menu class on any <li> element within the topbar or ul.tabs and you'll get some superfancy dropdowns
.dropdown {
position: relative;
}
.dropdown-toggle {
// The caret makes the toggle a bit too tall in IE7
*margin-bottom: -3px;
}
.dropdown-toggle:active,
.open .dropdown-toggle {
outline: 0;
}
// Dropdown arrow/caret
// --------------------
.caret {
display: inline-block;
width: 0;
height: 0;
vertical-align: top;
border-left: 4px solid transparent;
border-right: 4px solid transparent;
border-top: 4px solid @black;
.opacity(30);
content: "";
}
// Place the caret
.dropdown .caret {
margin-top: 8px;
margin-left: 2px;
}
.dropdown:hover .caret,
.open.dropdown .caret {
.opacity(100);
}
// The dropdown menu (ul)
// ----------------------
.dropdown-menu {
position: absolute;
top: 100%;
left: 0;
z-index: @zindexDropdown;
float: left;
display: none; // none by default, but block on "open" of the menu
min-width: 160px;
padding: 4px 0;
margin: 0; // override default ul
list-style: none;
background-color: @dropdownBackground;
border-color: #ccc;
border-color: rgba(0,0,0,.2);
border-style: solid;
border-width: 1px;
.border-radius(0 0 5px 5px);
.box-shadow(0 5px 10px rgba(0,0,0,.2));
-webkit-background-clip: padding-box;
-moz-background-clip: padding;
background-clip: padding-box;
*border-right-width: 2px;
*border-bottom-width: 2px;
// Aligns the dropdown menu to right
&.pull-right {
right: 0;
left: auto;
}
// Dividers (basically an hr) within the dropdown
.divider {
.nav-divider();
}
// Links within the dropdown menu
a {
display: block;
padding: 3px 15px;
clear: both;
font-weight: normal;
line-height: @baseLineHeight;
color: @dropdownLinkColor;
white-space: nowrap;
}
}
// Hover state
// -----------
.dropdown-menu li > a:hover,
.dropdown-menu .active > a,
.dropdown-menu .active > a:hover {
color: @dropdownLinkColorHover;
text-decoration: none;
background-color: @dropdownLinkBackgroundHover;
}
// Open state for the dropdown
// ---------------------------
.dropdown.open {
// IE7's z-index only goes to the nearest positioned ancestor, which would
// make the menu appear below buttons that appeared later on the page
*z-index: @zindexDropdown;
.dropdown-toggle {
color: @white;
background: #ccc;
background: rgba(0,0,0,.3);
}
.dropdown-menu {
display: block;
}
}
// Right aligned dropdowns
.pull-right .dropdown-menu {
left: auto;
right: 0;
}
// Allow for dropdowns to go bottom up (aka, dropup-menu)
// ------------------------------------------------------
// Just add .dropup after the standard .dropdown class and you're set, bro.
// TODO: abstract this so that the navbar fixed styles are not placed here?
.dropup,
.navbar-fixed-bottom .dropdown {
// Reverse the caret
.caret {
border-top: 0;
border-bottom: 4px solid @black;
content: "\2191";
}
// Different positioning for bottom up menu
.dropdown-menu {
top: auto;
bottom: 100%;
margin-bottom: 1px;
}
}
// Typeahead
// ---------
.typeahead {
margin-top: 2px; // give it some space to breathe
.border-radius(4px);
}

View File

@@ -0,0 +1,555 @@
// Forms.less
// Base styles for various input types, form layouts, and states
// -------------------------------------------------------------
// GENERAL STYLES
// --------------
// Make all forms have space below them
form {
margin: 0 0 @baseLineHeight;
}
fieldset {
padding: 0;
margin: 0;
border: 0;
}
// Groups of fields with labels on top (legends)
legend {
display: block;
width: 100%;
padding: 0;
margin-bottom: @baseLineHeight * 1.5;
font-size: @baseFontSize * 1.5;
line-height: @baseLineHeight * 2;
color: @grayDark;
border: 0;
border-bottom: 1px solid #eee;
// Small
small {
font-size: @baseLineHeight * .75;
color: @grayLight;
}
}
// Set font for forms
label,
input,
button,
select,
textarea {
#font > .shorthand(@baseFontSize,normal,@baseLineHeight); // Set size, weight, line-height here
}
input,
button,
select,
textarea {
font-family: @baseFontFamily; // And only set font-family here for those that need it (note the missing label element)
}
// Identify controls by their labels
label {
display: block;
margin-bottom: 5px;
color: @grayDark;
}
// Inputs, Textareas, Selects
input,
textarea,
select,
.uneditable-input {
display: inline-block;
width: 210px;
height: @baseLineHeight;
padding: 4px;
margin-bottom: 9px;
font-size: @baseFontSize;
line-height: @baseLineHeight;
color: @gray;
border: 1px solid @inputBorder;
.border-radius(3px);
}
.uneditable-textarea {
width: auto;
height: auto;
}
// Inputs within a label
label input,
label textarea,
label select {
display: block;
}
// Mini reset for unique input types
input[type="image"],
input[type="checkbox"],
input[type="radio"] {
width: auto;
height: auto;
padding: 0;
margin: 3px 0;
*margin-top: 0; /* IE7 */
line-height: normal;
cursor: pointer;
.border-radius(0);
border: 0 \9; /* IE9 and down */
}
input[type="image"] {
border: 0;
}
// Reset the file input to browser defaults
input[type="file"] {
width: auto;
padding: initial;
line-height: initial;
border: initial;
background-color: @inputBackground;
background-color: initial;
.box-shadow(none);
}
// Help out input buttons
input[type="button"],
input[type="reset"],
input[type="submit"] {
width: auto;
height: auto;
}
// Set the height of select and file controls to match text inputs
select,
input[type="file"] {
height: 28px; /* In IE7, the height of the select element cannot be changed by height, only font-size */
*margin-top: 4px; /* For IE7, add top margin to align select with labels */
line-height: 28px;
}
// Reset line-height for IE
input[type="file"] {
line-height: 18px \9;
}
// Chrome on Linux and Mobile Safari need background-color
select {
width: 220px; // default input width + 10px of padding that doesn't get applied
background-color: @inputBackground;
}
// Make multiple select elements height not fixed
select[multiple],
select[size] {
height: auto;
}
// Remove shadow from image inputs
input[type="image"] {
.box-shadow(none);
}
// Make textarea height behave
textarea {
height: auto;
}
// Hidden inputs
input[type="hidden"] {
display: none;
}
// CHECKBOXES & RADIOS
// -------------------
// Indent the labels to position radios/checkboxes as hanging
.radio,
.checkbox {
padding-left: 18px;
}
.radio input[type="radio"],
.checkbox input[type="checkbox"] {
float: left;
margin-left: -18px;
}
// Move the options list down to align with labels
.controls > .radio:first-child,
.controls > .checkbox:first-child {
padding-top: 5px; // has to be padding because margin collaspes
}
// Radios and checkboxes on same line
// TODO v3: Convert .inline to .control-inline
.radio.inline,
.checkbox.inline {
display: inline-block;
padding-top: 5px;
margin-bottom: 0;
vertical-align: middle;
}
.radio.inline + .radio.inline,
.checkbox.inline + .checkbox.inline {
margin-left: 10px; // space out consecutive inline controls
}
// FOCUS STATE
// -----------
input,
textarea {
.box-shadow(inset 0 1px 1px rgba(0,0,0,.075));
@transition: border linear .2s, box-shadow linear .2s;
.transition(@transition);
}
input:focus,
textarea:focus {
border-color: rgba(82,168,236,.8);
@shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(82,168,236,.6);
.box-shadow(@shadow);
outline: 0;
outline: thin dotted \9; /* IE6-9 */
}
input[type="file"]:focus,
input[type="radio"]:focus,
input[type="checkbox"]:focus,
select:focus {
.box-shadow(none); // override for file inputs
.tab-focus();
}
// INPUT SIZES
// -----------
// General classes for quick sizes
.input-mini { width: 60px; }
.input-small { width: 90px; }
.input-medium { width: 150px; }
.input-large { width: 210px; }
.input-xlarge { width: 270px; }
.input-xxlarge { width: 530px; }
// Grid style input sizes
input[class*="span"],
select[class*="span"],
textarea[class*="span"],
.uneditable-input {
float: none;
margin-left: 0;
}
// GRID SIZING FOR INPUTS
// ----------------------
#grid > .input (@gridColumnWidth, @gridGutterWidth);
// DISABLED STATE
// --------------
// Disabled and read-only inputs
input[disabled],
select[disabled],
textarea[disabled],
input[readonly],
select[readonly],
textarea[readonly] {
background-color: @inputDisabledBackground;
border-color: #ddd;
cursor: not-allowed;
}
// FORM FIELD FEEDBACK STATES
// --------------------------
// Warning
.control-group.warning {
.formFieldState(@warningText, @warningText, @warningBackground);
}
// Error
.control-group.error {
.formFieldState(@errorText, @errorText, @errorBackground);
}
// Success
.control-group.success {
.formFieldState(@successText, @successText, @successBackground);
}
// HTML5 invalid states
// Shares styles with the .control-group.error above
input:focus:required:invalid,
textarea:focus:required:invalid,
select:focus:required:invalid {
color: #b94a48;
border-color: #ee5f5b;
&:focus {
border-color: darken(#ee5f5b, 10%);
.box-shadow(0 0 6px lighten(#ee5f5b, 20%));
}
}
// FORM ACTIONS
// ------------
.form-actions {
padding: (@baseLineHeight - 1) 20px @baseLineHeight;
margin-top: @baseLineHeight;
margin-bottom: @baseLineHeight;
background-color: @grayLighter;
border-top: 1px solid #ddd;
.clearfix(); // Adding clearfix to allow for .pull-right button containers
}
// For text that needs to appear as an input but should not be an input
.uneditable-input {
display: block;
background-color: @inputBackground;
border-color: #eee;
.box-shadow(inset 0 1px 2px rgba(0,0,0,.025));
cursor: not-allowed;
}
// Placeholder text gets special styles; can't be bundled together though for some reason
.placeholder(@grayLight);
// HELP TEXT
// ---------
.help-block,
.help-inline {
color: @gray; // lighten the text some for contrast
}
.help-block {
display: block; // account for any element using help-block
margin-bottom: @baseLineHeight / 2;
}
.help-inline {
display: inline-block;
.ie7-inline-block();
vertical-align: middle;
padding-left: 5px;
}
// INPUT GROUPS
// ------------
// Allow us to put symbols and text within the input field for a cleaner look
.input-prepend,
.input-append {
margin-bottom: 5px;
input,
select,
.uneditable-input {
*margin-left: 0;
.border-radius(0 3px 3px 0);
&:focus {
position: relative;
z-index: 2;
}
}
.uneditable-input {
border-left-color: #ccc;
}
.add-on {
display: inline-block;
width: auto;
min-width: 16px;
height: @baseLineHeight;
padding: 4px 5px;
font-weight: normal;
line-height: @baseLineHeight;
text-align: center;
text-shadow: 0 1px 0 @white;
vertical-align: middle;
background-color: @grayLighter;
border: 1px solid #ccc;
}
.add-on,
.btn {
.border-radius(3px 0 0 3px);
}
.active {
background-color: lighten(@green, 30);
border-color: @green;
}
}
.input-prepend {
.add-on,
.btn {
margin-right: -1px;
}
}
.input-append {
input,
select
.uneditable-input {
.border-radius(3px 0 0 3px);
}
.uneditable-input {
border-left-color: #eee;
border-right-color: #ccc;
}
.add-on,
.btn {
margin-left: -1px;
.border-radius(0 3px 3px 0);
}
}
// Remove all border-radius for inputs with both prepend and append
.input-prepend.input-append {
input,
select,
.uneditable-input {
.border-radius(0);
}
.add-on:first-child,
.btn:first-child {
margin-right: -1px;
.border-radius(3px 0 0 3px);
}
.add-on:last-child,
.btn:last-child {
margin-left: -1px;
.border-radius(0 3px 3px 0);
}
}
// SEARCH FORM
// -----------
.search-query {
padding-left: 14px;
padding-right: 14px;
margin-bottom: 0; // remove the default margin on all inputs
.border-radius(14px);
}
// HORIZONTAL & VERTICAL FORMS
// ---------------------------
// Common properties
// -----------------
.form-search,
.form-inline,
.form-horizontal {
input,
textarea,
select,
.help-inline,
.uneditable-input,
.input-prepend,
.input-append {
display: inline-block;
margin-bottom: 0;
}
// Re-hide hidden elements due to specifity
.hide {
display: none;
}
}
.form-search label,
.form-inline label {
display: inline-block;
}
// Remove margin for input-prepend/-append
.form-search .input-append,
.form-inline .input-append,
.form-search .input-prepend,
.form-inline .input-prepend {
margin-bottom: 0;
}
// Inline checkbox/radio labels (remove padding on left)
.form-search .radio,
.form-search .checkbox,
.form-inline .radio,
.form-inline .checkbox {
padding-left: 0;
margin-bottom: 0;
vertical-align: middle;
}
// Remove float and margin, set to inline-block
.form-search .radio input[type="radio"],
.form-search .checkbox input[type="checkbox"],
.form-inline .radio input[type="radio"],
.form-inline .checkbox input[type="checkbox"] {
float: left;
margin-left: 0;
margin-right: 3px;
}
// Margin to space out fieldsets
.control-group {
margin-bottom: @baseLineHeight / 2;
}
// Legend collapses margin, so next element is responsible for spacing
legend + .control-group {
margin-top: @baseLineHeight;
-webkit-margin-top-collapse: separate;
}
// Horizontal-specific styles
// --------------------------
.form-horizontal {
// Increase spacing between groups
.control-group {
margin-bottom: @baseLineHeight;
.clearfix();
}
// Float the labels left
.control-label {
float: left;
width: 140px;
padding-top: 5px;
text-align: right;
}
// Move over all input controls and content
.controls {
margin-left: 160px;
/* Super jank IE7 fix to ensure the inputs in .input-append and input-prepend don't inherit the margin of the parent, in this case .controls */
*display: inline-block;
*margin-left: 0;
*padding-left: 20px;
}
// Remove bottom margin on block level help text since that's accounted for on .control-group
.help-block {
margin-top: @baseLineHeight / 2;
margin-bottom: 0;
}
// Move over buttons in .form-actions to align with .controls
.form-actions {
padding-left: 160px;
}
}

View File

@@ -0,0 +1,5 @@
// Fixed (940px)
#grid > .core(@gridColumnWidth, @gridGutterWidth);
// Fluid (940px)
#grid > .fluid(@fluidGridColumnWidth, @fluidGridGutterWidth);

View File

@@ -0,0 +1,22 @@
// HERO UNIT
// ---------
.hero-unit {
padding: 60px;
margin-bottom: 30px;
background-color: @heroUnitBackground;
.border-radius(6px);
h1 {
margin-bottom: 0;
font-size: 60px;
line-height: 1;
color: @heroUnitHeadingColor;
letter-spacing: -1px;
}
p {
font-size: 18px;
font-weight: 200;
line-height: @baseLineHeight * 1.5;
color: @heroUnitLeadColor;
}
}

View File

@@ -0,0 +1,38 @@
// LABELS
// ------
// Base
.label {
padding: 1px 4px 2px;
font-size: @baseFontSize * .846;
font-weight: bold;
line-height: 13px; // ensure proper line-height if floated
color: @white;
vertical-align: middle;
white-space: nowrap;
text-shadow: 0 -1px 0 rgba(0,0,0,.25);
background-color: @grayLight;
.border-radius(3px);
}
// Hover state
.label:hover {
color: @white;
text-decoration: none;
}
// Colors
.label-important { background-color: @errorText; }
.label-important:hover { background-color: darken(@errorText, 10%); }
.label-warning { background-color: @orange; }
.label-warning:hover { background-color: darken(@orange, 10%); }
.label-success { background-color: @successText; }
.label-success:hover { background-color: darken(@successText, 10%); }
.label-info { background-color: @infoText; }
.label-info:hover { background-color: darken(@infoText, 10%); }
.label-inverse { background-color: @grayDark; }
.label-inverse:hover { background-color: darken(@grayDark, 10%); }

View File

@@ -0,0 +1,17 @@
//
// Layouts
// Fixed-width and fluid (with sidebar) layouts
// --------------------------------------------
// Container (centered, fixed-width layouts)
.container {
.container-fixed();
}
// Fluid layouts (left aligned, with sidebar, min- & max-width content)
.container-fluid {
padding-left: @gridGutterWidth;
padding-right: @gridGutterWidth;
.clearfix();
}

View File

@@ -0,0 +1,614 @@
// Mixins.less
// Snippets of reusable CSS to develop faster and keep code readable
// -----------------------------------------------------------------
// UTILITY MIXINS
// --------------------------------------------------
// Clearfix
// --------
// For clearing floats like a boss h5bp.com/q
.clearfix {
*zoom: 1;
&:before,
&:after {
display: table;
content: "";
}
&:after {
clear: both;
}
}
// Webkit-style focus
// ------------------
.tab-focus() {
// Default
outline: thin dotted #333;
// Webkit
outline: 5px auto -webkit-focus-ring-color;
outline-offset: -2px;
}
// Center-align a block level element
// ----------------------------------
.center-block() {
display: block;
margin-left: auto;
margin-right: auto;
}
// IE7 inline-block
// ----------------
.ie7-inline-block() {
*display: inline; /* IE7 inline-block hack */
*zoom: 1;
}
// IE7 likes to collapse whitespace on either side of the inline-block elements.
// Ems because we're attempting to match the width of a space character. Left
// version is for form buttons, which typically come after other elements, and
// right version is for icons, which come before. Applying both is ok, but it will
// mean that space between those elements will be .6em (~2 space characters) in IE7,
// instead of the 1 space in other browsers.
.ie7-restore-left-whitespace() {
*margin-left: .3em;
&:first-child {
*margin-left: 0;
}
}
.ie7-restore-right-whitespace() {
*margin-right: .3em;
&:last-child {
*margin-left: 0;
}
}
// Sizing shortcuts
// -------------------------
.size(@height: 5px, @width: 5px) {
width: @width;
height: @height;
}
.square(@size: 5px) {
.size(@size, @size);
}
// Placeholder text
// -------------------------
.placeholder(@color: @placeholderText) {
:-moz-placeholder {
color: @color;
}
::-webkit-input-placeholder {
color: @color;
}
}
// Text overflow
// -------------------------
// Requires inline-block or block for proper styling
.text-overflow() {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
// New image replacement
// -------------------------
// Source: http://www.zeldman.com/2012/03/01/replacing-the-9999px-hack-new-image-replacement/
.hide-text {
overflow: hidden;
text-indent: 100%;
white-space: nowrap;
}
// FONTS
// --------------------------------------------------
#font {
#family {
.serif() {
font-family: Georgia, "Times New Roman", Times, serif;
}
.sans-serif() {
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
.monospace() {
font-family: Menlo, Monaco, "Courier New", monospace;
}
}
.shorthand(@size: @baseFontSize, @weight: normal, @lineHeight: @baseLineHeight) {
font-size: @size;
font-weight: @weight;
line-height: @lineHeight;
}
.serif(@size: @baseFontSize, @weight: normal, @lineHeight: @baseLineHeight) {
#font > #family > .serif;
#font > .shorthand(@size, @weight, @lineHeight);
}
.sans-serif(@size: @baseFontSize, @weight: normal, @lineHeight: @baseLineHeight) {
#font > #family > .sans-serif;
#font > .shorthand(@size, @weight, @lineHeight);
}
.monospace(@size: @baseFontSize, @weight: normal, @lineHeight: @baseLineHeight) {
#font > #family > .monospace;
#font > .shorthand(@size, @weight, @lineHeight);
}
}
// FORMS
// --------------------------------------------------
// Block level inputs
.input-block-level {
display: block;
width: 100%;
min-height: 28px; /* Make inputs at least the height of their button counterpart */
/* Makes inputs behave like true block-level elements */
.box-sizing(border-box);
}
// Mixin for form field states
.formFieldState(@textColor: #555, @borderColor: #ccc, @backgroundColor: #f5f5f5) {
// Set the text color
> label,
.help-block,
.help-inline {
color: @textColor;
}
// Style inputs accordingly
input,
select,
textarea {
color: @textColor;
border-color: @borderColor;
&:focus {
border-color: darken(@borderColor, 10%);
.box-shadow(0 0 6px lighten(@borderColor, 20%));
}
}
// Give a small background color for input-prepend/-append
.input-prepend .add-on,
.input-append .add-on {
color: @textColor;
background-color: @backgroundColor;
border-color: @textColor;
}
}
// CSS3 PROPERTIES
// --------------------------------------------------
// Border Radius
.border-radius(@radius: 5px) {
-webkit-border-radius: @radius;
-moz-border-radius: @radius;
border-radius: @radius;
}
// Drop shadows
.box-shadow(@shadow: 0 1px 3px rgba(0,0,0,.25)) {
-webkit-box-shadow: @shadow;
-moz-box-shadow: @shadow;
box-shadow: @shadow;
}
// Transitions
.transition(@transition) {
-webkit-transition: @transition;
-moz-transition: @transition;
-ms-transition: @transition;
-o-transition: @transition;
transition: @transition;
}
// Transformations
.rotate(@degrees) {
-webkit-transform: rotate(@degrees);
-moz-transform: rotate(@degrees);
-ms-transform: rotate(@degrees);
-o-transform: rotate(@degrees);
transform: rotate(@degrees);
}
.scale(@ratio) {
-webkit-transform: scale(@ratio);
-moz-transform: scale(@ratio);
-ms-transform: scale(@ratio);
-o-transform: scale(@ratio);
transform: scale(@ratio);
}
.translate(@x: 0, @y: 0) {
-webkit-transform: translate(@x, @y);
-moz-transform: translate(@x, @y);
-ms-transform: translate(@x, @y);
-o-transform: translate(@x, @y);
transform: translate(@x, @y);
}
.skew(@x: 0, @y: 0) {
-webkit-transform: skew(@x, @y);
-moz-transform: skew(@x, @y);
-ms-transform: skew(@x, @y);
-o-transform: skew(@x, @y);
transform: skew(@x, @y);
}
.translate3d(@x: 0, @y: 0, @z: 0) {
-webkit-transform: translate(@x, @y, @z);
-moz-transform: translate(@x, @y, @z);
-ms-transform: translate(@x, @y, @z);
-o-transform: translate(@x, @y, @z);
transform: translate(@x, @y, @z);
}
// Background clipping
// Heads up: FF 3.6 and under need "padding" instead of "padding-box"
.background-clip(@clip) {
-webkit-background-clip: @clip;
-moz-background-clip: @clip;
background-clip: @clip;
}
// Background sizing
.background-size(@size){
-webkit-background-size: @size;
-moz-background-size: @size;
-o-background-size: @size;
background-size: @size;
}
// Box sizing
.box-sizing(@boxmodel) {
-webkit-box-sizing: @boxmodel;
-moz-box-sizing: @boxmodel;
-ms-box-sizing: @boxmodel;
box-sizing: @boxmodel;
}
// User select
// For selecting text on the page
.user-select(@select) {
-webkit-user-select: @select;
-moz-user-select: @select;
-o-user-select: @select;
user-select: @select;
}
// Resize anything
.resizable(@direction: both) {
resize: @direction; // Options: horizontal, vertical, both
overflow: auto; // Safari fix
}
// CSS3 Content Columns
.content-columns(@columnCount, @columnGap: @gridColumnGutter) {
-webkit-column-count: @columnCount;
-moz-column-count: @columnCount;
column-count: @columnCount;
-webkit-column-gap: @columnGap;
-moz-column-gap: @columnGap;
column-gap: @columnGap;
}
// Opacity
.opacity(@opacity: 100) {
opacity: @opacity / 100;
filter: ~"alpha(opacity=@{opacity})";
}
// BACKGROUNDS
// --------------------------------------------------
// Add an alphatransparency value to any background or border color (via Elyse Holladay)
#translucent {
.background(@color: @white, @alpha: 1) {
background-color: hsla(hue(@color), saturation(@color), lightness(@color), @alpha);
}
.border(@color: @white, @alpha: 1) {
border-color: hsla(hue(@color), saturation(@color), lightness(@color), @alpha);
.background-clip(padding-box);
}
}
// Gradient Bar Colors for buttons and alerts
.gradientBar(@primaryColor, @secondaryColor) {
#gradient > .vertical(@primaryColor, @secondaryColor);
border-color: @secondaryColor @secondaryColor darken(@secondaryColor, 15%);
border-color: rgba(0,0,0,.1) rgba(0,0,0,.1) fadein(rgba(0,0,0,.1), 15%);
}
// Gradients
#gradient {
.horizontal(@startColor: #555, @endColor: #333) {
background-color: @endColor;
background-image: -moz-linear-gradient(left, @startColor, @endColor); // FF 3.6+
background-image: -ms-linear-gradient(left, @startColor, @endColor); // IE10
background-image: -webkit-gradient(linear, 0 0, 100% 0, from(@startColor), to(@endColor)); // Safari 4+, Chrome 2+
background-image: -webkit-linear-gradient(left, @startColor, @endColor); // Safari 5.1+, Chrome 10+
background-image: -o-linear-gradient(left, @startColor, @endColor); // Opera 11.10
background-image: linear-gradient(left, @startColor, @endColor); // Le standard
background-repeat: repeat-x;
filter: e(%("progid:DXImageTransform.Microsoft.gradient(startColorstr='%d', endColorstr='%d', GradientType=1)",@startColor,@endColor)); // IE9 and down
}
.vertical(@startColor: #555, @endColor: #333) {
background-color: mix(@startColor, @endColor, 60%);
background-image: -moz-linear-gradient(top, @startColor, @endColor); // FF 3.6+
background-image: -ms-linear-gradient(top, @startColor, @endColor); // IE10
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(@startColor), to(@endColor)); // Safari 4+, Chrome 2+
background-image: -webkit-linear-gradient(top, @startColor, @endColor); // Safari 5.1+, Chrome 10+
background-image: -o-linear-gradient(top, @startColor, @endColor); // Opera 11.10
background-image: linear-gradient(top, @startColor, @endColor); // The standard
background-repeat: repeat-x;
filter: e(%("progid:DXImageTransform.Microsoft.gradient(startColorstr='%d', endColorstr='%d', GradientType=0)",@startColor,@endColor)); // IE9 and down
}
.directional(@startColor: #555, @endColor: #333, @deg: 45deg) {
background-color: @endColor;
background-repeat: repeat-x;
background-image: -moz-linear-gradient(@deg, @startColor, @endColor); // FF 3.6+
background-image: -ms-linear-gradient(@deg, @startColor, @endColor); // IE10
background-image: -webkit-linear-gradient(@deg, @startColor, @endColor); // Safari 5.1+, Chrome 10+
background-image: -o-linear-gradient(@deg, @startColor, @endColor); // Opera 11.10
background-image: linear-gradient(@deg, @startColor, @endColor); // The standard
}
.vertical-three-colors(@startColor: #00b3ee, @midColor: #7a43b6, @colorStop: 50%, @endColor: #c3325f) {
background-color: mix(@midColor, @endColor, 80%);
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(@startColor), color-stop(@colorStop, @midColor), to(@endColor));
background-image: -webkit-linear-gradient(@startColor, @midColor @colorStop, @endColor);
background-image: -moz-linear-gradient(top, @startColor, @midColor @colorStop, @endColor);
background-image: -ms-linear-gradient(@startColor, @midColor @colorStop, @endColor);
background-image: -o-linear-gradient(@startColor, @midColor @colorStop, @endColor);
background-image: linear-gradient(@startColor, @midColor @colorStop, @endColor);
background-repeat: no-repeat;
filter: e(%("progid:DXImageTransform.Microsoft.gradient(startColorstr='%d', endColorstr='%d', GradientType=0)",@startColor,@endColor)); // IE9 and down, gets no color-stop at all for proper fallback
}
.radial(@innerColor: #555, @outerColor: #333) {
background-color: @outerColor;
background-image: -webkit-gradient(radial, center center, 0, center center, 460, from(@innerColor), to(@outerColor));
background-image: -webkit-radial-gradient(circle, @innerColor, @outerColor);
background-image: -moz-radial-gradient(circle, @innerColor, @outerColor);
background-image: -ms-radial-gradient(circle, @innerColor, @outerColor);
background-image: -o-radial-gradient(circle, @innerColor, @outerColor);
background-repeat: no-repeat;
}
.striped(@color, @angle: -45deg) {
background-color: @color;
background-image: -webkit-gradient(linear, 0 100%, 100% 0, color-stop(.25, rgba(255,255,255,.15)), color-stop(.25, transparent), color-stop(.5, transparent), color-stop(.5, rgba(255,255,255,.15)), color-stop(.75, rgba(255,255,255,.15)), color-stop(.75, transparent), to(transparent));
background-image: -webkit-linear-gradient(@angle, rgba(255,255,255,.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.15) 50%, rgba(255,255,255,.15) 75%, transparent 75%, transparent);
background-image: -moz-linear-gradient(@angle, rgba(255,255,255,.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.15) 50%, rgba(255,255,255,.15) 75%, transparent 75%, transparent);
background-image: -ms-linear-gradient(@angle, rgba(255,255,255,.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.15) 50%, rgba(255,255,255,.15) 75%, transparent 75%, transparent);
background-image: -o-linear-gradient(@angle, rgba(255,255,255,.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.15) 50%, rgba(255,255,255,.15) 75%, transparent 75%, transparent);
background-image: linear-gradient(@angle, rgba(255,255,255,.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.15) 50%, rgba(255,255,255,.15) 75%, transparent 75%, transparent);
}
}
// Reset filters for IE
.reset-filter() {
filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
}
// COMPONENT MIXINS
// --------------------------------------------------
// Horizontal dividers
// -------------------------
// Dividers (basically an hr) within dropdowns and nav lists
.nav-divider() {
height: 1px;
margin: ((@baseLineHeight / 2) - 1) 1px; // 8px 1px
overflow: hidden;
background-color: #e5e5e5;
border-bottom: 1px solid @white;
// IE7 needs a set width since we gave a height. Restricting just
// to IE7 to keep the 1px left/right space in other browsers.
// It is unclear where IE is getting the extra space that we need
// to negative-margin away, but so it goes.
*width: 100%;
*margin: -5px 0 5px;
}
// Button backgrounds
// ------------------
.buttonBackground(@startColor, @endColor) {
// gradientBar will set the background to a pleasing blend of these, to support IE<=9
.gradientBar(@startColor, @endColor);
.reset-filter();
// in these cases the gradient won't cover the background, so we override
&:hover, &:active, &.active, &.disabled, &[disabled] {
background-color: @endColor;
}
// IE 7 + 8 can't handle box-shadow to show active, so we darken a bit ourselves
&:active,
&.active {
background-color: darken(@endColor, 10%) e("\9");
}
}
// Navbar vertical align
// -------------------------
// Vertically center elements in the navbar.
// Example: an element has a height of 30px, so write out `.navbarVerticalAlign(30px);` to calculate the appropriate top margin.
.navbarVerticalAlign(@elementHeight) {
margin-top: (@navbarHeight - @elementHeight) / 2;
}
// Popover arrows
// -------------------------
// For tipsies and popovers
#popoverArrow {
.top(@arrowWidth: 5px, @color: @black) {
bottom: 0;
left: 50%;
margin-left: -@arrowWidth;
border-left: @arrowWidth solid transparent;
border-right: @arrowWidth solid transparent;
border-top: @arrowWidth solid @color;
}
.left(@arrowWidth: 5px, @color: @black) {
top: 50%;
right: 0;
margin-top: -@arrowWidth;
border-top: @arrowWidth solid transparent;
border-bottom: @arrowWidth solid transparent;
border-left: @arrowWidth solid @color;
}
.bottom(@arrowWidth: 5px, @color: @black) {
top: 0;
left: 50%;
margin-left: -@arrowWidth;
border-left: @arrowWidth solid transparent;
border-right: @arrowWidth solid transparent;
border-bottom: @arrowWidth solid @color;
}
.right(@arrowWidth: 5px, @color: @black) {
top: 50%;
left: 0;
margin-top: -@arrowWidth;
border-top: @arrowWidth solid transparent;
border-bottom: @arrowWidth solid transparent;
border-right: @arrowWidth solid @color;
}
}
// Grid System
// -----------
// Centered container element
.container-fixed() {
margin-left: auto;
margin-right: auto;
.clearfix();
}
// Table columns
.tableColumns(@columnSpan: 1) {
float: none; // undo default grid column styles
width: ((@gridColumnWidth) * @columnSpan) + (@gridGutterWidth * (@columnSpan - 1)) - 16; // 16 is total padding on left and right of table cells
margin-left: 0; // undo default grid column styles
}
// Make a Grid
// Use .makeRow and .makeColumn to assign semantic layouts grid system behavior
.makeRow() {
margin-left: @gridGutterWidth * -1;
.clearfix();
}
.makeColumn(@columns: 1) {
float: left;
margin-left: @gridGutterWidth;
width: (@gridColumnWidth * @columns) + (@gridGutterWidth * (@columns - 1));
}
// The Grid
#grid {
.core (@gridColumnWidth, @gridGutterWidth) {
.spanX (@index) when (@index > 0) {
(~".span@{index}") { .span(@index); }
.spanX(@index - 1);
}
.spanX (0) {}
.offsetX (@index) when (@index > 0) {
(~".offset@{index}") { .offset(@index); }
.offsetX(@index - 1);
}
.offsetX (0) {}
.offset (@columns) {
margin-left: (@gridColumnWidth * @columns) + (@gridGutterWidth * (@columns - 1)) + (@gridGutterWidth * 2);
}
.span (@columns) {
width: (@gridColumnWidth * @columns) + (@gridGutterWidth * (@columns - 1));
}
.row {
margin-left: @gridGutterWidth * -1;
.clearfix();
}
[class*="span"] {
float: left;
margin-left: @gridGutterWidth;
}
// Set the container width, and override it for fixed navbars in media queries
.container,
.navbar-fixed-top .container,
.navbar-fixed-bottom .container { .span(@gridColumns); }
// generate .spanX and .offsetX
.spanX (@gridColumns);
.offsetX (@gridColumns);
}
.fluid (@fluidGridColumnWidth, @fluidGridGutterWidth) {
.spanX (@index) when (@index > 0) {
(~"> .span@{index}") { .span(@index); }
.spanX(@index - 1);
}
.spanX (0) {}
.span (@columns) {
width: (@fluidGridColumnWidth * @columns) + (@fluidGridGutterWidth * (@columns - 1));
}
.row-fluid {
width: 100%;
.clearfix();
> [class*="span"] {
float: left;
margin-left: @fluidGridGutterWidth;
}
> [class*="span"]:first-child {
margin-left: 0;
}
// generate .spanX
.spanX (@gridColumns);
}
}
.input(@gridColumnWidth, @gridGutterWidth) {
.spanX (@index) when (@index > 0) {
(~"input.span@{index}, textarea.span@{index}, .uneditable-input.span@{index}") { .span(@index); }
.spanX(@index - 1);
}
.spanX (0) {}
.span(@columns) {
width: ((@gridColumnWidth) * @columns) + (@gridGutterWidth * (@columns - 1)) - 10;
}
input,
textarea,
.uneditable-input {
margin-left: 0; // override margin-left from core grid system
}
// generate .spanX
.spanX (@gridColumns);
}
}

View File

@@ -0,0 +1,90 @@
// MODALS
// ------
// Recalculate z-index where appropriate
.modal-open {
.dropdown-menu { z-index: @zindexDropdown + @zindexModal; }
.dropdown.open { *z-index: @zindexDropdown + @zindexModal; }
.popover { z-index: @zindexPopover + @zindexModal; }
.tooltip { z-index: @zindexTooltip + @zindexModal; }
}
// Background
.modal-backdrop {
position: fixed;
top: 0;
right: 0;
bottom: 0;
left: 0;
z-index: @zindexModalBackdrop;
background-color: @black;
// Fade for backdrop
&.fade { opacity: 0; }
}
.modal-backdrop,
.modal-backdrop.fade.in {
.opacity(80);
}
// Base modal
.modal {
position: fixed;
top: 50%;
left: 50%;
z-index: @zindexModal;
overflow: auto;
width: 560px;
margin: -250px 0 0 -280px;
background-color: @white;
border: 1px solid #999;
border: 1px solid rgba(0,0,0,.3);
*border: 1px solid #999; /* IE6-7 */
.border-radius(6px);
.box-shadow(0 3px 7px rgba(0,0,0,0.3));
.background-clip(padding-box);
&.fade {
.transition(e('opacity .3s linear, top .3s ease-out'));
top: -25%;
}
&.fade.in { top: 50%; }
}
.modal-header {
padding: 9px 15px;
border-bottom: 1px solid #eee;
// Close icon
.close { margin-top: 2px; }
}
// Body (where all modal content resises)
.modal-body {
overflow-y: auto;
max-height: 400px;
padding: 15px;
}
// Remove bottom margin if need be
.modal-form {
margin-bottom: 0;
}
// Footer (for actions)
.modal-footer {
padding: 14px 15px 15px;
margin-bottom: 0;
text-align: right; // right align buttons
background-color: #f5f5f5;
border-top: 1px solid #ddd;
.border-radius(0 0 6px 6px);
.box-shadow(inset 0 1px 0 @white);
.clearfix(); // clear it in case folks use .pull-* classes on buttons
// Properly space out buttons
.btn + .btn {
margin-left: 5px;
margin-bottom: 0; // account for input[type="submit"] which gets the bottom margin like all other inputs
}
// but override that for button groups
.btn-group .btn + .btn {
margin-left: -1px;
}
}

View File

@@ -0,0 +1,341 @@
// NAVBAR (FIXED AND STATIC)
// -------------------------
// COMMON STYLES
// -------------
.navbar {
// Fix for IE7's bad z-indexing so dropdowns don't appear below content that follows the navbar
*position: relative;
*z-index: 2;
overflow: visible;
margin-bottom: @baseLineHeight;
}
// Gradient is applied to it's own element because overflow visible is not honored by IE when filter is present
.navbar-inner {
padding-left: 20px;
padding-right: 20px;
#gradient > .vertical(@navbarBackgroundHighlight, @navbarBackground);
.border-radius(4px);
@shadow: 0 1px 3px rgba(0,0,0,.25), inset 0 -1px 0 rgba(0,0,0,.1);
.box-shadow(@shadow);
}
// Set width to auto for default container
// We then reset it for fixed navbars in the #gridSystem mixin
.navbar .container {
width: auto;
}
// Navbar button for toggling navbar items in responsive layouts
.btn-navbar {
display: none;
float: right;
padding: 7px 10px;
margin-left: 5px;
margin-right: 5px;
.buttonBackground(@navbarBackgroundHighlight, @navbarBackground);
@shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 1px 0 rgba(255,255,255,.075);
.box-shadow(@shadow);
}
.btn-navbar .icon-bar {
display: block;
width: 18px;
height: 2px;
background-color: #f5f5f5;
.border-radius(1px);
.box-shadow(0 1px 0 rgba(0,0,0,.25));
}
.btn-navbar .icon-bar + .icon-bar {
margin-top: 3px;
}
// Override the default collapsed state
.nav-collapse.collapse {
height: auto;
}
// Brand, links, text, and buttons
.navbar {
color: @navbarText;
// Hover and active states
.brand:hover {
text-decoration: none;
}
// Website or project name
.brand {
float: left;
display: block;
padding: 8px 20px 12px;
margin-left: -20px; // negative indent to left-align the text down the page
font-size: 20px;
font-weight: 200;
line-height: 1;
color: @white;
}
// Plain text in topbar
.navbar-text {
margin-bottom: 0;
line-height: @navbarHeight;
}
// Buttons in navbar
.btn,
.btn-group {
.navbarVerticalAlign(30px); // Vertically center in navbar
}
.btn-group .btn {
margin-top: 0; // then undo the margin here so we don't accidentally double it
}
}
// Navbar forms
.navbar-form {
margin-bottom: 0; // remove default bottom margin
.clearfix();
input,
select,
.radio,
.checkbox {
.navbarVerticalAlign(30px); // Vertically center in navbar
}
input,
select {
display: inline-block;
margin-bottom: 0;
}
input[type="image"],
input[type="checkbox"],
input[type="radio"] {
margin-top: 3px;
}
.input-append,
.input-prepend {
margin-top: 6px;
white-space: nowrap; // preven two items from separating within a .navbar-form that has .pull-left
input {
margin-top: 0; // remove the margin on top since it's on the parent
}
}
}
// Navbar search
.navbar-search {
position: relative;
float: left;
.navbarVerticalAlign(28px); // Vertically center in navbar
margin-bottom: 0;
.search-query {
padding: 4px 9px;
#font > .sans-serif(13px, normal, 1);
color: @white;
background-color: @navbarSearchBackground;
border: 1px solid @navbarSearchBorder;
@shadow: inset 0 1px 2px rgba(0,0,0,.1), 0 1px 0px rgba(255,255,255,.15);
.box-shadow(@shadow);
.transition(none);
// Placeholder text gets special styles; can't be a grouped selector
&:-moz-placeholder {
color: @navbarSearchPlaceholderColor;
}
&::-webkit-input-placeholder {
color: @navbarSearchPlaceholderColor;
}
// Focus states (we use .focused since IE7-8 and down doesn't support :focus)
&:focus,
&.focused {
padding: 5px 10px;
color: @grayDark;
text-shadow: 0 1px 0 @white;
background-color: @navbarSearchBackgroundFocus;
border: 0;
.box-shadow(0 0 3px rgba(0,0,0,.15));
outline: 0;
}
}
}
// FIXED NAVBAR
// ------------
// Shared (top/bottom) styles
.navbar-fixed-top,
.navbar-fixed-bottom {
position: fixed;
right: 0;
left: 0;
z-index: @zindexFixedNavbar;
margin-bottom: 0; // remove 18px margin for static navbar
}
.navbar-fixed-top .navbar-inner,
.navbar-fixed-bottom .navbar-inner {
padding-left: 0;
padding-right: 0;
.border-radius(0);
}
.navbar-fixed-top .container,
.navbar-fixed-bottom .container {
#grid > .core > .span(@gridColumns);
}
// Fixed to top
.navbar-fixed-top {
top: 0;
}
// Fixed to bottom
.navbar-fixed-bottom {
bottom: 0;
}
// NAVIGATION
// ----------
.navbar .nav {
position: relative;
left: 0;
display: block;
float: left;
margin: 0 10px 0 0;
}
.navbar .nav.pull-right {
float: right; // redeclare due to specificity
}
.navbar .nav > li {
display: block;
float: left;
}
// Links
.navbar .nav > li > a {
float: none;
padding: 10px 10px 11px;
line-height: 19px;
color: @navbarLinkColor;
text-decoration: none;
text-shadow: 0 -1px 0 rgba(0,0,0,.25);
}
// Hover
.navbar .nav > li > a:hover {
background-color: @navbarLinkBackgroundHover; // "transparent" is default to differentiate :hover from .active
color: @navbarLinkColorHover;
text-decoration: none;
}
// Active nav items
.navbar .nav .active > a,
.navbar .nav .active > a:hover {
color: @navbarLinkColorActive;
text-decoration: none;
background-color: @navbarLinkBackgroundActive;
}
// Dividers (basically a vertical hr)
.navbar .divider-vertical {
height: @navbarHeight;
width: 1px;
margin: 0 9px;
overflow: hidden;
background-color: @navbarBackground;
border-right: 1px solid @navbarBackgroundHighlight;
}
// Secondary (floated right) nav in topbar
.navbar .nav.pull-right {
margin-left: 10px;
margin-right: 0;
}
// Dropdown menus
// --------------
// Menu position and menu carets
.navbar .dropdown-menu {
margin-top: 1px;
.border-radius(4px);
&:before {
content: '';
display: inline-block;
border-left: 7px solid transparent;
border-right: 7px solid transparent;
border-bottom: 7px solid #ccc;
border-bottom-color: @dropdownBorder;
position: absolute;
top: -7px;
left: 9px;
}
&:after {
content: '';
display: inline-block;
border-left: 6px solid transparent;
border-right: 6px solid transparent;
border-bottom: 6px solid @dropdownBackground;
position: absolute;
top: -6px;
left: 10px;
}
}
// Menu position and menu caret support for dropups via extra dropup class
.navbar-fixed-bottom .dropdown-menu {
&:before {
border-top: 7px solid #ccc;
border-top-color: @dropdownBorder;
border-bottom: 0;
bottom: -7px;
top: auto;
}
&:after {
border-top: 6px solid @dropdownBackground;
border-bottom: 0;
bottom: -6px;
top: auto;
}
}
// Dropdown toggle caret
.navbar .nav .dropdown-toggle .caret,
.navbar .nav .open.dropdown .caret {
border-top-color: @white;
border-bottom-color: @white;
}
.navbar .nav .active .caret {
.opacity(100);
}
// Remove background color from open dropdown
.navbar .nav .open > .dropdown-toggle,
.navbar .nav .active > .dropdown-toggle,
.navbar .nav .open.active > .dropdown-toggle {
background-color: transparent;
}
// Dropdown link on hover
.navbar .nav .active > .dropdown-toggle:hover {
color: @white;
}
// Right aligned menus need alt position
// TODO: rejigger this at some point to simplify the selectors
.navbar .nav.pull-right .dropdown-menu,
.navbar .nav .dropdown-menu.pull-right {
left: auto;
right: 0;
&:before {
left: auto;
right: 12px;
}
&:after {
left: auto;
right: 13px;
}
}

View File

@@ -0,0 +1,363 @@
// NAVIGATIONS
// -----------
// BASE CLASS
// ----------
.nav {
margin-left: 0;
margin-bottom: @baseLineHeight;
list-style: none;
}
// Make links block level
.nav > li > a {
display: block;
}
.nav > li > a:hover {
text-decoration: none;
background-color: @grayLighter;
}
// Nav headers (for dropdowns and lists)
.nav .nav-header {
display: block;
padding: 3px 15px;
font-size: 11px;
font-weight: bold;
line-height: @baseLineHeight;
color: @grayLight;
text-shadow: 0 1px 0 rgba(255,255,255,.5);
text-transform: uppercase;
}
// Space them out when they follow another list item (link)
.nav li + .nav-header {
margin-top: 9px;
}
// NAV LIST
// --------
.nav-list {
padding-left: 15px;
padding-right: 15px;
margin-bottom: 0;
}
.nav-list > li > a,
.nav-list .nav-header {
margin-left: -15px;
margin-right: -15px;
text-shadow: 0 1px 0 rgba(255,255,255,.5);
}
.nav-list > li > a {
padding: 3px 15px;
}
.nav-list > .active > a,
.nav-list > .active > a:hover {
color: @white;
text-shadow: 0 -1px 0 rgba(0,0,0,.2);
background-color: @linkColor;
}
.nav-list [class^="icon-"] {
margin-right: 2px;
}
// Dividers (basically an hr) within the dropdown
.nav-list .divider {
.nav-divider();
}
// TABS AND PILLS
// -------------
// Common styles
.nav-tabs,
.nav-pills {
.clearfix();
}
.nav-tabs > li,
.nav-pills > li {
float: left;
}
.nav-tabs > li > a,
.nav-pills > li > a {
padding-right: 12px;
padding-left: 12px;
margin-right: 2px;
line-height: 14px; // keeps the overall height an even number
}
// TABS
// ----
// Give the tabs something to sit on
.nav-tabs {
border-bottom: 1px solid #ddd;
}
// Make the list-items overlay the bottom border
.nav-tabs > li {
margin-bottom: -1px;
}
// Actual tabs (as links)
.nav-tabs > li > a {
padding-top: 8px;
padding-bottom: 8px;
line-height: @baseLineHeight;
border: 1px solid transparent;
.border-radius(4px 4px 0 0);
&:hover {
border-color: @grayLighter @grayLighter #ddd;
}
}
// Active state, and it's :hover to override normal :hover
.nav-tabs > .active > a,
.nav-tabs > .active > a:hover {
color: @gray;
background-color: @white;
border: 1px solid #ddd;
border-bottom-color: transparent;
cursor: default;
}
// PILLS
// -----
// Links rendered as pills
.nav-pills > li > a {
padding-top: 8px;
padding-bottom: 8px;
margin-top: 2px;
margin-bottom: 2px;
.border-radius(5px);
}
// Active state
.nav-pills > .active > a,
.nav-pills > .active > a:hover {
color: @white;
background-color: @linkColor;
}
// STACKED NAV
// -----------
// Stacked tabs and pills
.nav-stacked > li {
float: none;
}
.nav-stacked > li > a {
margin-right: 0; // no need for the gap between nav items
}
// Tabs
.nav-tabs.nav-stacked {
border-bottom: 0;
}
.nav-tabs.nav-stacked > li > a {
border: 1px solid #ddd;
.border-radius(0);
}
.nav-tabs.nav-stacked > li:first-child > a {
.border-radius(4px 4px 0 0);
}
.nav-tabs.nav-stacked > li:last-child > a {
.border-radius(0 0 4px 4px);
}
.nav-tabs.nav-stacked > li > a:hover {
border-color: #ddd;
z-index: 2;
}
// Pills
.nav-pills.nav-stacked > li > a {
margin-bottom: 3px;
}
.nav-pills.nav-stacked > li:last-child > a {
margin-bottom: 1px; // decrease margin to match sizing of stacked tabs
}
// DROPDOWNS
// ---------
// Position the menu
.nav-tabs .dropdown-menu,
.nav-pills .dropdown-menu {
margin-top: 1px;
border-width: 1px;
}
.nav-pills .dropdown-menu {
.border-radius(4px);
}
// Default dropdown links
// -------------------------
// Make carets use linkColor to start
.nav-tabs .dropdown-toggle .caret,
.nav-pills .dropdown-toggle .caret {
border-top-color: @linkColor;
border-bottom-color: @linkColor;
margin-top: 6px;
}
.nav-tabs .dropdown-toggle:hover .caret,
.nav-pills .dropdown-toggle:hover .caret {
border-top-color: @linkColorHover;
border-bottom-color: @linkColorHover;
}
// Active dropdown links
// -------------------------
.nav-tabs .active .dropdown-toggle .caret,
.nav-pills .active .dropdown-toggle .caret {
border-top-color: @grayDark;
border-bottom-color: @grayDark;
}
// Active:hover dropdown links
// -------------------------
.nav > .dropdown.active > a:hover {
color: @black;
cursor: pointer;
}
// Open dropdowns
// -------------------------
.nav-tabs .open .dropdown-toggle,
.nav-pills .open .dropdown-toggle,
.nav > .open.active > a:hover {
color: @white;
background-color: @grayLight;
border-color: @grayLight;
}
.nav .open .caret,
.nav .open.active .caret,
.nav .open a:hover .caret {
border-top-color: @white;
border-bottom-color: @white;
.opacity(100);
}
// Dropdowns in stacked tabs
.tabs-stacked .open > a:hover {
border-color: @grayLight;
}
// TABBABLE
// --------
// COMMON STYLES
// -------------
// Clear any floats
.tabbable {
.clearfix();
}
.tab-content {
display: table; // prevent content from running below tabs
width: 100%;
}
// Remove border on bottom, left, right
.tabs-below .nav-tabs,
.tabs-right .nav-tabs,
.tabs-left .nav-tabs {
border-bottom: 0;
}
// Show/hide tabbable areas
.tab-content > .tab-pane,
.pill-content > .pill-pane {
display: none;
}
.tab-content > .active,
.pill-content > .active {
display: block;
}
// BOTTOM
// ------
.tabs-below .nav-tabs {
border-top: 1px solid #ddd;
}
.tabs-below .nav-tabs > li {
margin-top: -1px;
margin-bottom: 0;
}
.tabs-below .nav-tabs > li > a {
.border-radius(0 0 4px 4px);
&:hover {
border-bottom-color: transparent;
border-top-color: #ddd;
}
}
.tabs-below .nav-tabs .active > a,
.tabs-below .nav-tabs .active > a:hover {
border-color: transparent #ddd #ddd #ddd;
}
// LEFT & RIGHT
// ------------
// Common styles
.tabs-left .nav-tabs > li,
.tabs-right .nav-tabs > li {
float: none;
}
.tabs-left .nav-tabs > li > a,
.tabs-right .nav-tabs > li > a {
min-width: 74px;
margin-right: 0;
margin-bottom: 3px;
}
// Tabs on the left
.tabs-left .nav-tabs {
float: left;
margin-right: 19px;
border-right: 1px solid #ddd;
}
.tabs-left .nav-tabs > li > a {
margin-right: -1px;
.border-radius(4px 0 0 4px);
}
.tabs-left .nav-tabs > li > a:hover {
border-color: @grayLighter #ddd @grayLighter @grayLighter;
}
.tabs-left .nav-tabs .active > a,
.tabs-left .nav-tabs .active > a:hover {
border-color: #ddd transparent #ddd #ddd;
*border-right-color: @white;
}
// Tabs on the right
.tabs-right .nav-tabs {
float: right;
margin-left: 19px;
border-left: 1px solid #ddd;
}
.tabs-right .nav-tabs > li > a {
margin-left: -1px;
.border-radius(0 4px 4px 0);
}
.tabs-right .nav-tabs > li > a:hover {
border-color: @grayLighter @grayLighter @grayLighter #ddd;
}
.tabs-right .nav-tabs .active > a,
.tabs-right .nav-tabs .active > a:hover {
border-color: #ddd #ddd #ddd transparent;
*border-left-color: @white;
}

View File

@@ -0,0 +1,36 @@
// PAGER
// -----
.pager {
margin-left: 0;
margin-bottom: @baseLineHeight;
list-style: none;
text-align: center;
.clearfix();
}
.pager li {
display: inline;
}
.pager a {
display: inline-block;
padding: 5px 14px;
background-color: #fff;
border: 1px solid #ddd;
.border-radius(15px);
}
.pager a:hover {
text-decoration: none;
background-color: #f5f5f5;
}
.pager .next a {
float: right;
}
.pager .previous a {
float: left;
}
.pager .disabled a,
.pager .disabled a:hover {
color: @grayLight;
background-color: #fff;
cursor: default;
}

View File

@@ -0,0 +1,56 @@
// PAGINATION
// ----------
.pagination {
height: @baseLineHeight * 2;
margin: @baseLineHeight 0;
}
.pagination ul {
display: inline-block;
.ie7-inline-block();
margin-left: 0;
margin-bottom: 0;
.border-radius(3px);
.box-shadow(0 1px 2px rgba(0,0,0,.05));
}
.pagination li {
display: inline;
}
.pagination a {
float: left;
padding: 0 14px;
line-height: (@baseLineHeight * 2) - 2;
text-decoration: none;
border: 1px solid #ddd;
border-left-width: 0;
}
.pagination a:hover,
.pagination .active a {
background-color: #f5f5f5;
}
.pagination .active a {
color: @grayLight;
cursor: default;
}
.pagination .disabled span,
.pagination .disabled a,
.pagination .disabled a:hover {
color: @grayLight;
background-color: transparent;
cursor: default;
}
.pagination li:first-child a {
border-left-width: 1px;
.border-radius(3px 0 0 3px);
}
.pagination li:last-child a {
.border-radius(0 3px 3px 0);
}
// Centered
.pagination-centered {
text-align: center;
}
.pagination-right {
text-align: right;
}

View File

@@ -0,0 +1,49 @@
// POPOVERS
// --------
.popover {
position: absolute;
top: 0;
left: 0;
z-index: @zindexPopover;
display: none;
padding: 5px;
&.top { margin-top: -5px; }
&.right { margin-left: 5px; }
&.bottom { margin-top: 5px; }
&.left { margin-left: -5px; }
&.top .arrow { #popoverArrow > .top(); }
&.right .arrow { #popoverArrow > .right(); }
&.bottom .arrow { #popoverArrow > .bottom(); }
&.left .arrow { #popoverArrow > .left(); }
.arrow {
position: absolute;
width: 0;
height: 0;
}
}
.popover-inner {
padding: 3px;
width: 280px;
overflow: hidden;
background: @black; // has to be full background declaration for IE fallback
background: rgba(0,0,0,.8);
.border-radius(6px);
.box-shadow(0 3px 7px rgba(0,0,0,0.3));
}
.popover-title {
padding: 9px 15px;
line-height: 1;
background-color: #f5f5f5;
border-bottom:1px solid #eee;
.border-radius(3px 3px 0 0);
}
.popover-content {
padding: 14px;
background-color: @white;
.border-radius(0 0 3px 3px);
.background-clip(padding-box);
p, ul, ol {
margin-bottom: 0;
}
}

View File

@@ -0,0 +1,109 @@
// PROGRESS BARS
// -------------
// ANIMATIONS
// ----------
// Webkit
@-webkit-keyframes progress-bar-stripes {
from { background-position: 0 0; }
to { background-position: 40px 0; }
}
// Firefox
@-moz-keyframes progress-bar-stripes {
from { background-position: 0 0; }
to { background-position: 40px 0; }
}
// IE9
@-ms-keyframes progress-bar-stripes {
from { background-position: 0 0; }
to { background-position: 40px 0; }
}
// Spec
@keyframes progress-bar-stripes {
from { background-position: 0 0; }
to { background-position: 40px 0; }
}
// THE BARS
// --------
// Outer container
.progress {
overflow: hidden;
height: 18px;
margin-bottom: 18px;
#gradient > .vertical(#f5f5f5, #f9f9f9);
.box-shadow(inset 0 1px 2px rgba(0,0,0,.1));
.border-radius(4px);
}
// Bar of progress
.progress .bar {
width: 0%;
height: 18px;
color: @white;
font-size: 12px;
text-align: center;
text-shadow: 0 -1px 0 rgba(0,0,0,.25);
#gradient > .vertical(#149bdf, #0480be);
.box-shadow(inset 0 -1px 0 rgba(0,0,0,.15));
.box-sizing(border-box);
.transition(width .6s ease);
}
// Striped bars
.progress-striped .bar {
#gradient > .striped(#149bdf);
.background-size(40px 40px);
}
// Call animation for the active one
.progress.active .bar {
-webkit-animation: progress-bar-stripes 2s linear infinite;
-moz-animation: progress-bar-stripes 2s linear infinite;
animation: progress-bar-stripes 2s linear infinite;
}
// COLORS
// ------
// Danger (red)
.progress-danger .bar {
#gradient > .vertical(#ee5f5b, #c43c35);
}
.progress-danger.progress-striped .bar {
#gradient > .striped(#ee5f5b);
}
// Success (green)
.progress-success .bar {
#gradient > .vertical(#62c462, #57a957);
}
.progress-success.progress-striped .bar {
#gradient > .striped(#62c462);
}
// Info (teal)
.progress-info .bar {
#gradient > .vertical(#5bc0de, #339bb9);
}
.progress-info.progress-striped .bar {
#gradient > .striped(#5bc0de);
}
// Warning (orange)
.progress-warning .bar {
#gradient > .vertical(lighten(@orange, 15%), @orange);
}
.progress-warning.progress-striped .bar {
#gradient > .striped(lighten(@orange, 15%));
}

Some files were not shown because too many files have changed in this diff Show More