Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
doctrine-dbal
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Tomáš Trávníček
doctrine-dbal
Commits
5b94c846
Commit
5b94c846
authored
Sep 05, 2007
by
Jonathan.Wage
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed manual module and redirected to existing manual.
parent
93f452cd
Changes
7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
151 additions
and
143 deletions
+151
-143
routing.yml
website/apps/frontend/config/routing.yml
+1
-1
actions.class.php
website/apps/frontend/modules/main/actions/actions.class.php
+5
-0
actions.class.php
...te/apps/frontend/modules/manual/actions/actions.class.php
+0
-104
view.yml
website/apps/frontend/modules/manual/config/view.yml
+0
-3
_table_of_contents.php
.../frontend/modules/manual/templates/_table_of_contents.php
+0
-22
indexSuccess.php
...e/apps/frontend/modules/manual/templates/indexSuccess.php
+0
-13
frontend_dev.log
website/log/frontend_dev.log
+145
-0
No files found.
website/apps/frontend/config/routing.yml
View file @
5b94c846
...
...
@@ -17,7 +17,7 @@ download:
manual
:
url
:
/documentation/manual
param
:
{
module
:
ma
nual
,
action
:
index
}
param
:
{
module
:
ma
in
,
action
:
manual
}
api_documentation
:
url
:
/documentation/api
...
...
website/apps/frontend/modules/main/actions/actions.class.php
View file @
5b94c846
...
...
@@ -17,6 +17,11 @@ class mainActions extends sfActions
public
function
executeIndex
()
{
}
public
function
executeManual
()
{
$this
->
redirect
(
'http://doctrine.pengus.net/doctrine_trunk/manual/new'
);
}
public
function
executeAbout
()
{
...
...
website/apps/frontend/modules/manual/actions/actions.class.php
deleted
100644 → 0
View file @
93f452cd
<?php
/**
* manual actions.
*
* @package doctrine_website
* @subpackage manual
* @author Your name here
* @version SVN: $Id: actions.class.php 2692 2006-11-15 21:03:55Z fabien $
*/
class
manualActions
extends
sfActions
{
/**
* Executes index action
*
*/
public
function
executeIndex
()
{
error_reporting
(
E_ALL
);
$trunk
=
dirname
(
dirname
(
dirname
(
dirname
(
dirname
(
dirname
(
dirname
(
__FILE__
)))))));
$vendorPath
=
$trunk
.
DIRECTORY_SEPARATOR
.
'vendor'
;
$manualPath
=
$trunk
.
DIRECTORY_SEPARATOR
.
'manual'
;
$includePath
=
$vendorPath
.
PATH_SEPARATOR
.
$manualPath
.
DIRECTORY_SEPARATOR
.
'new'
.
DIRECTORY_SEPARATOR
.
'lib'
;
set_include_path
(
$includePath
);
require_once
(
'Sensei/Sensei.php'
);
require_once
(
'DocTool.php'
);
require_once
(
'Cache.php'
);
spl_autoload_register
(
array
(
'Sensei'
,
'autoload'
));
// Executes the 'svn info' command for the current directory and parses the last
// changed revision.
$revision
=
0
;
exec
(
'svn info .'
,
$output
);
foreach
(
$output
as
$line
)
{
if
(
preg_match
(
'/^Last Changed Rev: ([0-9]+)$/'
,
$line
,
$matches
))
{
$revision
=
$matches
[
1
];
break
;
}
}
$cacheDir
=
'./cache/'
;
$cacheRevFile
=
$cacheDir
.
'revision.txt'
;
$cacheRev
=
0
;
$cache
=
new
Cache
(
$cacheDir
,
'cache'
);
// Checks the revision cache files were created from
if
(
file_exists
(
$cacheRevFile
))
{
$cacheRev
=
(
int
)
file_get_contents
(
$cacheRevFile
);
}
// Empties the cache directory and saves the current revision to a file, if SVN
// revision is greater than cache revision
if
(
$revision
>
$cacheRev
)
{
$cache
->
clear
();
@
file_put_contents
(
$cacheRevFile
,
$revision
);
}
if
(
$cache
->
begin
())
{
$this
->
tool
=
new
DocTool
(
$manualPath
.
'/new/docs/en.txt'
);
// $this->tool->setOption('clean-url', true);
$baseUrl
=
''
;
$title
=
'Doctrine Manual'
;
$section
=
null
;
if
(
isset
(
$_GET
[
'chapter'
]))
{
$section
=
$this
->
tool
->
findByPath
(
$_GET
[
'chapter'
]);
if
(
$this
->
tool
->
getOption
(
'clean-url'
))
{
$baseUrl
=
'../'
;
}
}
if
(
isset
(
$_GET
[
'one-page'
]))
{
$this
->
tool
->
setOption
(
'one-page'
,
true
);
$this
->
tool
->
setOption
(
'max-level'
,
0
);
$section
=
null
;
$baseUrl
=
''
;
}
if
(
$section
)
{
while
(
$section
->
getLevel
()
>
1
)
{
$section
=
$section
->
getParent
();
}
$this
->
tool
->
setOption
(
'section'
,
$section
);
$title
.=
' - Chapter '
.
$section
->
getIndex
()
.
' '
.
$section
->
getName
();
}
if
(
$this
->
tool
->
getOption
(
'clean-url'
))
{
$this
->
tool
->
setOption
(
'base-url'
,
$baseUrl
);
}
$cache
->
end
();
}
}
}
\ No newline at end of file
website/apps/frontend/modules/manual/config/view.yml
deleted
100644 → 0
View file @
93f452cd
default
:
stylesheets
:
[
main
,
layout
,
manual
]
javascripts
:
[
manual_toc
,
manual_tree
,
mootools.v1.11
]
\ No newline at end of file
website/apps/frontend/modules/manual/templates/_table_of_contents.php
deleted
100644 → 0
View file @
93f452cd
<?php
if
(
$tool
->
getOption
(
'section'
)
||
$tool
->
getOption
(
'one-page'
)
)
:
?>
<h1>
Table of Contents
</h1>
<?php
$tool
->
renderToc
();
?>
<p>
<?php
if
(
$tool
->
getOption
(
'one-page'
))
:
?>
<a
href=
"
<?php
echo
(
$tool
->
getOption
(
'clean-url'
)
?
"chapter/"
:
'?chapter='
)
.
$tool
->
findByIndex
(
'1.'
)
->
getPath
();
?>
"
>
View one chapter per page
</a>
<?php
else
:
?>
<a
href=
"
<?php
echo
(
$tool
->
getOption
(
'clean-url'
)
?
"one-page"
:
'?one-page=1'
)
.
'#'
.
$tool
->
getOption
(
'section'
)
->
getPath
();
?>
"
>
View all in one page
</a>
<?php
endif
;
?>
</p>
<?php
else
:
?>
<p>
You can view this manual online as
<ul>
<li><a
href=
"
<?php
echo
$tool
->
getOption
(
'clean-url'
)
?
"one-page"
:
'?one-page=1'
;
?>
"
>
everything on a single page
</a></li>
<li><a
href=
"
<?php
echo
$tool
->
makeUrl
(
$tool
->
findByIndex
(
'1.'
)
->
getPath
());
?>
"
>
one chapter per page
</a></li>
</ul>
</p>
<?php
endif
;
?>
\ No newline at end of file
website/apps/frontend/modules/manual/templates/indexSuccess.php
deleted
100644 → 0
View file @
93f452cd
<div
id=
"manual"
>
<?php
if
(
$tool
->
getOption
(
'section'
)
||
$tool
->
getOption
(
'one-page'
)
)
:
?>
<?php
$tool
->
render
();
?>
<?php
else
:
?>
<h1>
Table of Contents
</h1>
<?php
$tool
->
renderToc
();
?>
<?php
endif
;
?>
</div>
<?php
slot
(
'right'
);
?>
<?php
echo
get_partial
(
'table_of_contents'
,
array
(
'tool'
=>
$tool
));
?>
<?php
end_slot
();
?>
\ No newline at end of file
website/log/frontend_dev.log
View file @
5b94c846
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment