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
48bab092
Commit
48bab092
authored
Feb 25, 2007
by
zYne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
--no commit message
--no commit message
parent
caf9e32c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
7 deletions
+16
-7
content.php
manual/content.php
+7
-2
documentation2.php
manual/documentation2.php
+9
-5
No files found.
manual/content.php
View file @
48bab092
...
...
@@ -8,9 +8,14 @@
$indexes
=
explode
(
'.'
,
$v
[
'index'
]);
$level
=
count
(
$indexes
);
$e
=
explode
(
' - '
,
$v
[
'name'
]);
$file
=
dirname
(
__FILE__
)
.
DIRECTORY_SEPARATOR
.
'docs'
.
DIRECTORY_SEPARATOR
.
$v
[
'name'
]
.
'.php'
;
print
'<div class=level'
.
$level
.
'><font class=level'
.
$level
.
'> '
.
$v
[
'index'
]
.
'. <a href=documentation2.php?chapter='
.
urlencode
(
$v
[
'name'
])
.
">"
.
end
(
$e
)
.
"</a></font></div>"
;
.
urlencode
(
$v
[
'name'
])
.
">"
.
end
(
$e
)
.
"</a></font>"
;
if
(
!
file_exists
(
$file
))
{
//print "<font color='red'>[code]</font>";
}
print
"</div>"
;
}
}
else
{
...
...
manual/documentation2.php
View file @
48bab092
...
...
@@ -76,24 +76,28 @@ class DocTool
return
$ret
;
}
public
function
renderBlock
(
$name
)
{
public
function
renderBlock
(
$name
)
{
if
(
file_exists
(
"docs/
$name
.php"
))
{
if
(
file_exists
(
"docs/
$name
.php"
))
{
$c
=
file_get_contents
(
"docs/
$name
.php"
);
if
(
substr
(
$c
,
0
,
5
)
==
"<?php"
)
{
if
(
substr
(
$c
,
0
,
5
)
==
"<?php"
)
{
include
(
"docs/
$name
.php"
);
}
elseif
(
strpos
(
$c
,
'<br \>'
)
!==
false
)
{
print
$c
;
}
else
{
print
$this
->
wiki
->
transform
(
$c
)
.
"<br><br>"
;
}
}
if
(
file_exists
(
"codes/
$name
.php"
))
{
if
(
file_exists
(
"codes/
$name
.php"
))
{
$c
=
file_get_contents
(
"codes/
$name
.php"
);
$c
=
trim
(
$c
);
$this
->
renderCode
(
$c
);
}
}
public
function
renderCode
(
$code
=
null
)
{
public
function
renderCode
(
$code
=
null
)
{
if
(
!
empty
(
$code
))
{
$this
->
highlighter
->
loadString
(
$code
);
...
...
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