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
cdd4cb75
Commit
cdd4cb75
authored
Sep 06, 2007
by
Jonathan.Wage
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Initial entry.
parent
b99d4413
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
96 additions
and
0 deletions
+96
-0
actions.class.php
...apps/backend/modules/blog_posts/actions/actions.class.php
+13
-0
generator.yml
website/apps/backend/modules/blog_posts/config/generator.yml
+11
-0
actions.class.php
website/apps/frontend/modules/blog/actions/actions.class.php
+30
-0
indexSuccess.php
...ite/apps/frontend/modules/blog/templates/indexSuccess.php
+0
-0
viewSuccess.php
website/apps/frontend/modules/blog/templates/viewSuccess.php
+7
-0
_about_paragraph.php
...apps/frontend/modules/main/templates/_about_paragraph.php
+4
-0
_key_features_list.php
...ps/frontend/modules/main/templates/_key_features_list.php
+11
-0
Common.class.php
website/lib/Common.class.php
+20
-0
No files found.
website/apps/backend/modules/blog_posts/actions/actions.class.php
0 → 100644
View file @
cdd4cb75
<?php
/**
* blog_posts actions.
*
* @package doctrine_website
* @subpackage blog_posts
* @author Your name here
* @version SVN: $Id: actions.class.php 1415 2006-06-11 08:33:51Z fabien $
*/
class
blog_postsActions
extends
autoblog_postsActions
{
}
website/apps/backend/modules/blog_posts/config/generator.yml
0 → 100644
View file @
cdd4cb75
generator
:
class
:
sfDoctrineAdminGenerator
param
:
model_class
:
BlogPost
theme
:
default
edit
:
display
:
[
name
,
body
]
fields
:
body
:
type
:
textarea_tag
params
:
size=60x15
\ No newline at end of file
website/apps/frontend/modules/blog/actions/actions.class.php
0 → 100644
View file @
cdd4cb75
<?php
/**
* blog actions.
*
* @package doctrine_website
* @subpackage blog
* @author Your name here
* @version SVN: $Id: actions.class.php 2692 2006-11-15 21:03:55Z fabien $
*/
class
blogActions
extends
sfActions
{
/**
* Executes index action
*
*/
public
function
executeIndex
()
{
}
public
function
executeView
()
{
$slug
=
$this
->
getRequestParameter
(
'slug'
);
$blogPostTable
=
Doctrine_Manager
::
getInstance
()
->
getTable
(
'BlogPost'
);
$this
->
blogPost
=
$blogPostTable
->
retrieveBySlug
(
$slug
);
}
}
website/apps/frontend/modules/blog/templates/indexSuccess.php
0 → 100644
View file @
cdd4cb75
website/apps/frontend/modules/blog/templates/viewSuccess.php
0 → 100644
View file @
cdd4cb75
<h1>
<?php
echo
$blogPost
->
getName
();
?>
</h1>
<p>
<?php
echo
$blogPost
->
getBody
();
?>
</p>
<?php
slot
(
'right'
);
?>
<input
type=
"button"
name=
"back_to_blog"
value=
"Back to Blog"
onClick=
"javascript: location.href = '
<?php
echo
url_for
(
'@blog'
);
?>
';"
/>
<?php
end_slot
();
?>
\ No newline at end of file
website/apps/frontend/modules/main/templates/_about_paragraph.php
0 → 100644
View file @
cdd4cb75
Doctrine
is
an
ORM
(
object
relational
mapper
)
for
PHP
5.2
.
x
+
that
sits
on
top
of
a
powerful
DBAL
(
database
abstraction
layer
)
.
One
of
its
key
features
is
the
ability
to
optionally
write
database
queries
in
an
OO
(
object
oriented
)
SQL
-
dialect
called
DQL
inspired
by
Hibernates
HQL
.
This
provides
developers
with
a
powerful
alternative
to
SQL
that
maintains
a
maximum
of
flexibility
without
requiring
needless
code
duplication
.
\ No newline at end of file
website/apps/frontend/modules/main/templates/_key_features_list.php
0 → 100644
View file @
cdd4cb75
<ul>
<li>
DQL (Doctrine Query Language)
</li>
<li>
Native SQL
</li>
<li>
Class Templates
</li>
<li>
Hierarchical Data
</li>
<li>
Supports most database types
</li>
<li>
Transactions
</li>
<li>
Caching
</li>
<li>
Fulltext Indexing/Searching
</li>
<li>
Plugins
</li>
</ul>
\ No newline at end of file
website/lib/Common.class.php
0 → 100644
View file @
cdd4cb75
<?php
class
Common
{
public
static
function
createSlug
(
$text
)
{
$text
=
strtolower
(
$text
);
// strip all non word chars
$text
=
preg_replace
(
'/\W/'
,
' '
,
$text
);
// replace all white space sections with a dash
$text
=
preg_replace
(
'/\ +/'
,
'-'
,
$text
);
// trim dashes
$text
=
preg_replace
(
'/\-$/'
,
''
,
$text
);
$text
=
preg_replace
(
'/^\-/'
,
''
,
$text
);
return
$text
;
}
}
\ No newline at end of file
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