| 1 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/2000/REC-xhtml1-200000126/DTD/xhtml1-transitional.dtd"> |
|---|
| 2 |
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> |
|---|
| 3 |
<head> |
|---|
| 4 |
<meta http-equiv="content-type" content="text/html; charset=utf-8" /> |
|---|
| 5 |
<title>symfony reference card</title> |
|---|
| 6 |
<link rel="stylesheet" type="text/css" href="refcard.css" /> |
|---|
| 7 |
</head> |
|---|
| 8 |
<body> |
|---|
| 9 |
|
|---|
| 10 |
<h1>» symfony reference card 1.0 «</h1> |
|---|
| 11 |
|
|---|
| 12 |
<!-- column start --> |
|---|
| 13 |
<div class="col"> |
|---|
| 14 |
|
|---|
| 15 |
<div class="subcol"> |
|---|
| 16 |
<h2>sfAction < Action</h2> |
|---|
| 17 |
<div class="content"> |
|---|
| 18 |
|
|---|
| 19 |
<h3>Returns</h3> |
|---|
| 20 |
-><span class="method">forward</span>($module, $action), |
|---|
| 21 |
-><span class="method">render_text</span>($text), |
|---|
| 22 |
<span class="method">sfView::SUCCESS</span> |
|---|
| 23 |
|
|---|
| 24 |
<h3>Shortcuts</h3> |
|---|
| 25 |
-><span class="method">getController</span>(), |
|---|
| 26 |
-><span class="method">getUser</span>(), |
|---|
| 27 |
-><span class="method">getRequest</span>(), |
|---|
| 28 |
-><span class="method">getRequestParameter</span>($name)() |
|---|
| 29 |
|
|---|
| 30 |
<h3>Template variables</h3> |
|---|
| 31 |
-><span class="method">setVar</span>(), |
|---|
| 32 |
-><span class="method">setVars</span>(), |
|---|
| 33 |
-><span class="method">removeVar</span>(), |
|---|
| 34 |
-><span class="method">hasVar</span>(), |
|---|
| 35 |
-><span class="method">getVars</span>(), |
|---|
| 36 |
-><span class="method">clearVars</span>() |
|---|
| 37 |
|
|---|
| 38 |
<h3>Models an helpers</h3> |
|---|
| 39 |
-><span class="method">useModel(s)</span>(), |
|---|
| 40 |
-><span class="method">useHelper(s)</span>() |
|---|
| 41 |
|
|---|
| 42 |
<h3>Authentication</h3> |
|---|
| 43 |
-><span class="method">setSecure</span>(S|L|A), |
|---|
| 44 |
-><span class="method">checkCredential</span>($crendentials, S|L|A) |
|---|
| 45 |
|
|---|
| 46 |
<h3>Cache</h3> |
|---|
| 47 |
-><span class="method">setCache</span>($time, S|L|A), |
|---|
| 48 |
-><span class="method">cacheExists</span>(), |
|---|
| 49 |
-><span class="method">isCached</span>() |
|---|
| 50 |
<br /><span class="method">sfView::ALL</span> (toutes les actions) |
|---|
| 51 |
|
|---|
| 52 |
<h3>Introspection</h3> |
|---|
| 53 |
-><span class="method">getModuleName</span>(), |
|---|
| 54 |
-><span class="method">getActionName</span>() |
|---|
| 55 |
|
|---|
| 56 |
<h3>Templates</h3> |
|---|
| 57 |
-><span class="method">setHasLayout</span>($boolean), |
|---|
| 58 |
-><span class="method">hasLayout</span>() |
|---|
| 59 |
-><span class="method">setLayout</span>($name) |
|---|
| 60 |
-><span class="method">setTemplate</span>($name) |
|---|
| 61 |
|
|---|
| 62 |
</div> |
|---|
| 63 |
</div> |
|---|
| 64 |
|
|---|
| 65 |
<div class="subcol"> |
|---|
| 66 |
<h2>sfUser < SecurityUser < User < ParameterHolder</h2> |
|---|
| 67 |
<div class="content"> |
|---|
| 68 |
|
|---|
| 69 |
<h3>Authentication</h3> |
|---|
| 70 |
-><span class="method">isAuthenticated</span>(), |
|---|
| 71 |
-><span class="method">setAuthenticated</span>(B) |
|---|
| 72 |
|
|---|
| 73 |
<h3>Droits</h3> |
|---|
| 74 |
-><span class="method">addCredentials</span>(S|L|A), |
|---|
| 75 |
-><span class="method">hasCredential</span>(S|L|A), |
|---|
| 76 |
-><span class="method">clearCredentials</span>(), |
|---|
| 77 |
-><span class="method">removeCredential</span>(S) |
|---|
| 78 |
|
|---|
| 79 |
<h3>Language</h3> |
|---|
| 80 |
-><span class="method">setCulture</span>(code ISO), |
|---|
| 81 |
-><span class="method">getCulture</span>() |
|---|
| 82 |
|
|---|
| 83 |
</div> |
|---|
| 84 |
</div> |
|---|
| 85 |
|
|---|
| 86 |
<div class="subcol"> |
|---|
| 87 |
<h2>WebRequest < Request < ParameterHolder</h2> |
|---|
| 88 |
<div class="content"> |
|---|
| 89 |
For access to parameters, cf. ParameterHolder class. |
|---|
| 90 |
|
|---|
| 91 |
<h3>Form validation</h3> |
|---|
| 92 |
-><span class="method">getError</span>($name), |
|---|
| 93 |
-><span class="method">getErrors</span>(), |
|---|
| 94 |
-><span class="method">hasError</span>($name), |
|---|
| 95 |
-><span class="method">hasErrors</span>(), |
|---|
| 96 |
-><span class="method">setError</span>($name, $message), |
|---|
| 97 |
-><span class="method">getErrorNames</span>(), -><span class="method">removeError</span>($name) |
|---|
| 98 |
|
|---|
| 99 |
<h3>Files</h3> |
|---|
| 100 |
-><span class="method">moveFile</span>($name, $file, [$fileMode = 0666], [$create = true], [$dirMode = 0777]), |
|---|
| 101 |
-><span class="method">hasFileError</span>($name), |
|---|
| 102 |
-><span class="method">hasFileErrors</span>(), |
|---|
| 103 |
-><span class="method">getFileName</span>($name), |
|---|
| 104 |
-><span class="method">getFiles</span>(), |
|---|
| 105 |
-><span class="method">hasFile</span>($name), |
|---|
| 106 |
-><span class="method">hasFiles</span>(), |
|---|
| 107 |
-><span class="method">getFile</span>($name), -><span class="method">getFileType</span>($name), -><span class="method">getFileError</span>($name), -><span class="method">getFileNames</span>(), -><span class="method">getFilePath</span>($name), -><span class="method">getFileSize</span>($name) |
|---|
| 108 |
|
|---|
| 109 |
<h3>Attributes</h3> |
|---|
| 110 |
-><span class="method">getAttribute</span>($name), |
|---|
| 111 |
-><span class="method">getAttributeNames</span>(), |
|---|
| 112 |
-><span class="method">hasAttribute</span>($name), |
|---|
| 113 |
-><span class="method">setAttribute</span>($name, $value), |
|---|
| 114 |
-><span class="method">removeAttribute</span>($name), |
|---|
| 115 |
-><span class="method">clearAttributes</span>() |
|---|
| 116 |
|
|---|
| 117 |
</div> |
|---|
| 118 |
</div> |
|---|
| 119 |
|
|---|
| 120 |
<div class="subcol"> |
|---|
| 121 |
<h2>ParameterHolder</h2> |
|---|
| 122 |
<div class="content"> |
|---|
| 123 |
-><span class="method">clearParameters</span>(), |
|---|
| 124 |
-><span class="method">getParameter</span>($name, [$default]), |
|---|
| 125 |
-><span class="method">getParameterNames</span>(), |
|---|
| 126 |
-><span class="method">getParameters</span>(), |
|---|
| 127 |
-><span class="method">hasParameter</span>($name), |
|---|
| 128 |
-><span class="method">removeParameter</span>($name), |
|---|
| 129 |
-><span class="method">setParameter</span>($name, $value), |
|---|
| 130 |
-><span class="method">setParameters</span>($parameters), |
|---|
| 131 |
-><span class="method">setParameterByRef</span>($name, $value), |
|---|
| 132 |
-><span class="method">setParametersByRef</span>(&$parameters) |
|---|
| 133 |
|
|---|
| 134 |
</div> |
|---|
| 135 |
</div> |
|---|
| 136 |
|
|---|
| 137 |
<!-- column end --> |
|---|
| 138 |
</div> |
|---|
| 139 |
|
|---|
| 140 |
<!-- column start --> |
|---|
| 141 |
<div class="col"> |
|---|
| 142 |
|
|---|
| 143 |
<div class="subcol"> |
|---|
| 144 |
<h2>Validators</h2> |
|---|
| 145 |
<div class="content"> |
|---|
| 146 |
<ul> |
|---|
| 147 |
<li><span class="method">NumberValidator</span> [max], [max_error], [min], [min_error], [nan_error], [type], [type_error]</li> |
|---|
| 148 |
<li><span class="method">RegexValidator</span> pattern, [match], [match_error]</li> |
|---|
| 149 |
<li><span class="method">StringValidator</span> [insensitive], [max], [max_error], [min], [min_error], [values], [values_errors]</li> |
|---|
| 150 |
<li><span class="method">sfEmailValidator</span> [email_error]</li> |
|---|
| 151 |
<li><span class="method">sfHtmlValidator</span> [html_error]</li> |
|---|
| 152 |
</ul> |
|---|
| 153 |
|
|---|
| 154 |
</div> |
|---|
| 155 |
</div> |
|---|
| 156 |
|
|---|
| 157 |
<div class="subcol"> |
|---|
| 158 |
<h2>schema.xml</h2> |
|---|
| 159 |
<div class="content"> |
|---|
| 160 |
|
|---|
| 161 |
<pre> |
|---|
| 162 |
<?xml version="1.0" encoding="UTF-8"?> |
|---|
| 163 |
<database name="DATABASE_NAME" defaultIdMethod="native"> |
|---|
| 164 |
<table name="TABLE_NAME"> |
|---|
| 165 |
<column name="COLUMN_NAME" [phpName="PHP_NAME"] |
|---|
| 166 |
type="(integer|varchar|longvarchar|date|boolean)" |
|---|
| 167 |
[required="true"] [defaultValue=""] |
|---|
| 168 |
[primaryKey="true"] [autoIncrement="true"] /> |
|---|
| 169 |
<foreign-key foreignTable="TABLE_BIS_NAME"> |
|---|
| 170 |
<reference local="id_TABLE_BIS_NAME" foreign="id"/> |
|---|
| 171 |
</foreign-key> |
|---|
| 172 |
</table> |
|---|
| 173 |
</database> |
|---|
| 174 |
</pre> |
|---|
| 175 |
|
|---|
| 176 |
</div> |
|---|
| 177 |
</div> |
|---|
| 178 |
|
|---|
| 179 |
<div class="subcol"> |
|---|
| 180 |
<h2>Generated object classes</h2> |
|---|
| 181 |
<div class="content"> |
|---|
| 182 |
|
|---|
| 183 |
<h3>Object.class.php</h3> |
|---|
| 184 |
<ul> |
|---|
| 185 |
<li>-><span class="method">get[PHP_COLUMN]</span>(), -><span class="method">set[PHP_COLUMN]</span>($value)</li> |
|---|
| 186 |
<li>-><span class="method">add[RELATED COLUMN]</span>($obj), -><span class="method">get[RELATED COLUMN]</span>()</li> |
|---|
| 187 |
<li>-><span class="method">getByName</span>($name), -><span class="method">setByName</span>($name, $value)</li> |
|---|
| 188 |
<li>-><span class="method">save</span>(), -><span class="method">delete</span>(), -><span class="method">copy</span>()</li> |
|---|
| 189 |
</ul> |
|---|
| 190 |
|
|---|
| 191 |
<h3>ObjectPeer.class.php</h3> |
|---|
| 192 |
$c : Criteria |
|---|
| 193 |
<ul> |
|---|
| 194 |
<li>::<span class="method">doCount</span>($c), ::<span class="method">doSelectOne</span>($c), ::<span class="method">doDeleteAll</span>(), ::<span class="method">doSelect</span>($c)</li> |
|---|
| 195 |
<li>::<span class="method">retrieveByPK</span>($pk)</li> |
|---|
| 196 |
<li>::<span class="method">doSelectJoin[JOIN_COLUMN]</span>($c), ::<span class="method">doSelectJoinAll</span>($c)</li> |
|---|
| 197 |
</ul> |
|---|
| 198 |
|
|---|
| 199 |
<h3>Criteria</h3> |
|---|
| 200 |
<ul> |
|---|
| 201 |
<li>-><span class="method">setLimit</span>($limit)</li> |
|---|
| 202 |
<li>-><span class="method">setOffset</span>($offset)</li> |
|---|
| 203 |
<li>-><span class="method">addGroupByColumn</span>($groupBy), -><span class="method">clearGroupByColumns</span>()</li> |
|---|
| 204 |
<li>-><span class="method">add(Asc|Desc)endingOrderByColumn</span>($name), -><span class="method">clearOrderByColumns</span>()</li> |
|---|
| 205 |
</ul> |
|---|
| 206 |
|
|---|
| 207 |
</div> |
|---|
| 208 |
</div> |
|---|
| 209 |
|
|---|
| 210 |
<div class="subcol"> |
|---|
| 211 |
<h2>Exemple Action</h2> |
|---|
| 212 |
<div class="content"> |
|---|
| 213 |
|
|---|
| 214 |
<pre> |
|---|
| 215 |
class mainActions extends sfActions |
|---|
| 216 |
{ |
|---|
| 217 |
public function preExecute() |
|---|
| 218 |
{ |
|---|
| 219 |
$this->setCache(2 * 86400, 'Index', 'Show'); |
|---|
| 220 |
$this->useModels('person', 'company'); |
|---|
| 221 |
$this->useHelpers('Wiki', 'List'); |
|---|
| 222 |
} |
|---|
| 223 |
|
|---|
| 224 |
public function executeIndex() |
|---|
| 225 |
{ |
|---|
| 226 |
$this->setVar('persons', PersonPeer::doSelect()); |
|---|
| 227 |
return sfView::SUCCESS; |
|---|
| 228 |
} |
|---|
| 229 |
} |
|---|
| 230 |
</pre> |
|---|
| 231 |
|
|---|
| 232 |
</div> |
|---|
| 233 |
</div> |
|---|
| 234 |
|
|---|
| 235 |
<div class="subcol"> |
|---|
| 236 |
<h2>Command line</h2> |
|---|
| 237 |
<div class="content"> |
|---|
| 238 |
|
|---|
| 239 |
<h3>Administration</h3> |
|---|
| 240 |
<ul> |
|---|
| 241 |
<li><span class="method">clear-cache</span> cache erase all</li> |
|---|
| 242 |
<li><span class="method">sync-prod[-dry]</span> synchronisation (-dry test)</li> |
|---|
| 243 |
</ul> |
|---|
| 244 |
|
|---|
| 245 |
<h3>Generation</h3> |
|---|
| 246 |
<ul> |
|---|
| 247 |
<li><span class="method">init-project</span> projet creation</li> |
|---|
| 248 |
<li><span class="method">propel-build-model</span> object model generation</li> |
|---|
| 249 |
<li><span class="method">propel-generate-crud</span> back-office generation</li> |
|---|
| 250 |
</ul> |
|---|
| 251 |
|
|---|
| 252 |
</div> |
|---|
| 253 |
</div> |
|---|
| 254 |
|
|---|
| 255 |
<!-- column end --> |
|---|
| 256 |
</div> |
|---|
| 257 |
|
|---|
| 258 |
<!-- column start --> |
|---|
| 259 |
<div class="col"> |
|---|
| 260 |
|
|---|
| 261 |
<div class="subcol"> |
|---|
| 262 |
<h2>Template helpers</h2> |
|---|
| 263 |
<div class="content"> |
|---|
| 264 |
$options : additional html attributes, in hash or string syntax<br /> |
|---|
| 265 |
<span class="method">Array('class' => 'myclass', 'id' => 12, 'style' => 'width:100px' )</span><br /> |
|---|
| 266 |
<span class="method">'class=myclass id=12 style=width:100px'</span> |
|---|
| 267 |
|
|---|
| 268 |
<h3>URL</h3> |
|---|
| 269 |
<ul> |
|---|
| 270 |
<li><span class="method">url_for</span>($url, [absolute=true])</li> |
|---|
| 271 |
<li><span class="method">link_to</span>($name, $url, [$options])</li> |
|---|
| 272 |
</ul> |
|---|
| 273 |
$url: module/action?param=value or @rule?param=value |
|---|
| 274 |
|
|---|
| 275 |
<h3>Form</h3> |
|---|
| 276 |
<ul> |
|---|
| 277 |
<li><span class="method">form_tag</span>($url, [$options])</li> |
|---|
| 278 |
<li><span class="method">input_tag</span>($name, [$value], [$options])</li> |
|---|
| 279 |
<li>same for <span class="method">input_hidden_tag</span>, <span class="method">input_password_tag</span>, <span class="method">textarea_tag</span></li> |
|---|
| 280 |
<li><span class="method">select_tag</span>($name, [$option_tags], [$options])</li> |
|---|
| 281 |
<li><span class="method">options_for_select</span>($options, [$selected])</li> |
|---|
| 282 |
<li><span class="method">input_file_tag</span>($name, [$options])</li> |
|---|
| 283 |
<li><span class="method">checkbox_tag</span>($name, [$value = 1], [$checked = false], [$options])</li> |
|---|
| 284 |
<li><span class="method">radiobutton_tag</span>($name, $value, [$checked = false], [$options])</li> |
|---|
| 285 |
<li><span class="method">submit_tag</span>($value, [$options])</li> |
|---|
| 286 |
</ul> |
|---|
| 287 |
|
|---|
| 288 |
<h3>Assets</h3> |
|---|
| 289 |
<ul> |
|---|
| 290 |
<li><span class="method">auto_discovery_link_tag</span>([$type], [$options])</li> |
|---|
| 291 |
<li><span class="method">javascript_tag</span>(S|L|A) by default in js/ and .js</li> |
|---|
| 292 |
<li><span class="method">image_path</span>($source) by default in images/ and .png</li> |
|---|
| 293 |
<li><span class="method">image_tag</span>($source, [$options])</li> |
|---|
| 294 |
</ul> |
|---|
| 295 |
|
|---|
| 296 |
<h3>I18N</h3> |
|---|
| 297 |
<ul> |
|---|
| 298 |
<li><span class="method">__</span>($text, [$culture])</li> |
|---|
| 299 |
</ul> |
|---|
| 300 |
|
|---|
| 301 |
<h3>Templates</h3> |
|---|
| 302 |
<ul> |
|---|
| 303 |
<li><span class="method">include_partial</span>($name, [$vars]) inclusion template 'name', 'module/name' ou 'global/name'</li> |
|---|
| 304 |
</ul> |
|---|
| 305 |
|
|---|
| 306 |
<h3>Text</h3> |
|---|
| 307 |
<ul> |
|---|
| 308 |
<li><span class="method">truncate_text</span>($text, $length = 30, $truncate_string = '...')</li> |
|---|
| 309 |
<li><span class="method">highlight_text</span>($text, $phrase, [$highlighter]) classe 'highlight' par défaut</li> |
|---|
| 310 |
<li><span class="method">excerpt_text</span>($text, $phrase, $radius = 100, $excerpt_string = '...')</li> |
|---|
| 311 |
<li><span class="method">simple_format_text</span>($text)</li> |
|---|
| 312 |
<li><span class="method">auto_link_text</span>($text, $link = 'all')</li> |
|---|
| 313 |
<li><span class="method">strip_links_text</span>($text)</li> |
|---|
| 314 |
</ul> |
|---|
| 315 |
|
|---|
| 316 |
<h3>Date</h3> |
|---|
| 317 |
<ul> |
|---|
| 318 |
<li><span class="method">format_date</span>($timestamp, [$culture])</li> |
|---|
| 319 |
<li><span class="method">distance_of_time_in_words</span>($from_timestamp, $to_timestamp, [$include_seconds])</li> |
|---|
| 320 |
<li><span class="method">time_ago_in_words</span>($from_timestamp, [$include_seconds])</li> |
|---|
| 321 |
</ul> |
|---|
| 322 |
|
|---|
| 323 |
<h3>Partial cache</h3> |
|---|
| 324 |
<ul> |
|---|
| 325 |
<li><span class="method">cache</span>($cache_time = 3600)</li> |
|---|
| 326 |
<li><span class="method">cache_save</span> |
|---|
| 327 |
<br /><?php if (!cache()): ?>... HTML ...<?php cache_save() ?><?php endif ?> |
|---|
| 328 |
</li> |
|---|
| 329 |
</ul> |
|---|
| 330 |
|
|---|
| 331 |
<h3>Javascript</h3> |
|---|
| 332 |
<ul> |
|---|
| 333 |
<li><span class="method">link_to_function</span>($name, $function, [$html_options])<br />link_to_function(image_tag("delete"), "if confirm('Really?'){ do_delete(); }")</li> |
|---|
| 334 |
<li><span class="method">link_to_remote</span>($name, [$options], [$html_options])</li> |
|---|
| 335 |
<li><span class="method">form_remote_tag([$options])</span></li> |
|---|
| 336 |
<li><span class="method">remote_function</span>($options)</li> |
|---|
| 337 |
<li><span class="method">observe_field</span>($field_id, [$options])</li> |
|---|
| 338 |
<li><span class="method">observe_form</span>($form_id, [$options])</li> |
|---|
| 339 |
<li><span class="method">escape_javascript</span>($javascript])</li> |
|---|
| 340 |
</ul> |
|---|
| 341 |
|
|---|
| 342 |
<h3>Object</h3> |
|---|
| 343 |
$object represents the object (Propel) |
|---|
| 344 |
<br />$column represents the column name ($object->get$column()) |
|---|
| 345 |
<br />unique signature: ($object, $column, [$options], [$value]) |
|---|
| 346 |
<span class="method">object_plain</span>, |
|---|
| 347 |
<span class="method">object_textarea_tag</span>, |
|---|
| 348 |
<span class="method">object_image_tag</span>, |
|---|
| 349 |
<span class="method">object_date_tag</span>, |
|---|
| 350 |
<span class="method">object_input_password_tag</span>, |
|---|
| 351 |
<span class="method">object_select_tag</span>, |
|---|
| 352 |
<span class="method">object_input_hidden_tag</span>, |
|---|
| 353 |
<span class="method">object_input_tag</span>, |
|---|
| 354 |
<span class="method">object_checkbox_tag</span> |
|---|
| 355 |
|
|---|
| 356 |
</div> |
|---|
| 357 |
</div> |
|---|
| 358 |
|
|---|
| 359 |
<!-- column end --> |
|---|
| 360 |
</div> |
|---|
| 361 |
|
|---|
| 362 |
<!-- column start --> |
|---|
| 363 |
<div class="col"> |
|---|
| 364 |
|
|---|
| 365 |
<div class="minisubcol"> |
|---|
| 366 |
<h2>Tree structure</h2> |
|---|
| 367 |
<div class="content"> |
|---|
| 368 |
|
|---|
| 369 |
<ul> |
|---|
| 370 |
<li><div style="float: right">[SF_ROOT_DIR]</div>/</li> |
|---|
| 371 |
<li><div style="float: right">[SF_APP_DIR]</div>apps/</li> |
|---|
| 372 |
<li><div style="float: right">x n applications</div> [APP]/</li> |
|---|
| 373 |
<li><div style="float: right">[SF_MESSAGES_DIR]</div> > i18n/</li> |
|---|
| 374 |
|
|---|
| 375 |
<li> > lib/</li> |
|---|
| 376 |
<li> > config/</li> |
|---|
| 377 |
<li> > i18n/</li> |
|---|
| 378 |
<li> > lib/</li> |
|---|
| 379 |
<li> > modules/</li> |
|---|
| 380 |
<li><div style="float: right">x n modules</div> > [MODULE]/</li> |
|---|
| 381 |
<li> > actions/</li> |
|---|
| 382 |
<li> > Actions.class.php</li> |
|---|
| 383 |
<li> > config/</li> |
|---|
| 384 |
<li> > lib/</li> |
|---|
| 385 |
<li> > templates/</li> |
|---|
| 386 |
<li> > IndexSuccess.php</li> |
|---|
| 387 |
<li> > validate/</li> |
|---|
| 388 |
<li> > templates/</li> |
|---|
| 389 |
<li> > layout.php</li> |
|---|
| 390 |
<li> > error.php</li> |
|---|
| 391 |
<li><div style="float: right"></div>batch/</li> |
|---|
| 392 |
<li><div style="float: right">[MO_CACHE_DIR]</div>cache/</li> |
|---|
| 393 |
<li> > [APP]/</li> |
|---|
| 394 |
<li> > [ENV]/</li> |
|---|
| 395 |
<li> > config/</li> |
|---|
| 396 |
<li> > template/</li> |
|---|
| 397 |
<li>config/</li> |
|---|
| 398 |
<li> > build.properties</li> |
|---|
| 399 |
<li> > rsync_exclude.txt</li> |
|---|
| 400 |
<li> > schema.xml</li> |
|---|
| 401 |
<li>data/</li> |
|---|
| 402 |
<li> > sql/</li> |
|---|
| 403 |
<li>doc/</li> |
|---|
| 404 |
<li><div style="float: right">[SF_CLASSES_DIR]</div>lib/</li> |
|---|
| 405 |
<li> > model/</li> |
|---|
| 406 |
<li> > om/</li> |
|---|
| 407 |
<li> > Base[OBJECT].php</li> |
|---|
| 408 |
<li> > Base[OBJECT]Peer.php</li> |
|---|
| 409 |
<li> > [OBJECT].php</li> |
|---|
| 410 |
<li> > [OBJECT]Peer.php</li> |
|---|
| 411 |
<li>log/</li> |
|---|
| 412 |
<li>test/</li> |
|---|
| 413 |
<li> > sf/</li> |
|---|
| 414 |
<li><div style="float: right">[SF_WEB_DIR]</div>web/</li> |
|---|
| 415 |
<li> > css/</li> |
|---|
| 416 |
<li> > images/</li> |
|---|
| 417 |
<li> > js/</li> |
|---|
| 418 |
<li><div style="float: right">[SF_UPLOAD_DIR]</div> > uploads/</li> |
|---|
| 419 |
<li> > index.php</li> |
|---|
| 420 |
</ul> |
|---|
| 421 |
|
|---|
| 422 |
</div> |
|---|
| 423 |
</div> |
|---|
| 424 |
|
|---|
| 425 |
<div class="minisubcol"> |
|---|
| 426 |
<h2>Constants</h2> |
|---|
| 427 |
<div class="content"> |
|---|
| 428 |
|
|---|
| 429 |
<h3>Symfony</h3> |
|---|
| 430 |
<ul> |
|---|
| 431 |
<li><span class="method">SF_PROJECT</span></li> |
|---|
| 432 |
<li><span class="method">SF_DEBUG</span></li> |
|---|
| 433 |
<li><span class="method">SF_DEFAULT_CULTURE</span></li> |
|---|
| 434 |
<li><span class="method">SF_TIMEOUT</span></li> |
|---|
| 435 |
</ul> |
|---|
| 436 |
|
|---|
| 437 |
<h3>Criteria</h3> |
|---|
| 438 |
<ul> |
|---|
| 439 |
<li><span class="method">EQUAL / NOT_EQUAL</span></li> |
|---|
| 440 |
<li><span class="method">GREATER_THAN / LESS_THAN</span></li> |
|---|
| 441 |
<li><span class="method">GREATER_EQUAL / LESS_EQUAL</span></li> |
|---|
| 442 |
<li><span class="method">LIKE / NOT LIKE / ILIKE / NOT ILIKE</span></li> |
|---|
| 443 |
<li><span class="method">IN / NOT IN</span></li> |
|---|
| 444 |
</ul> |
|---|
| 445 |
|
|---|
| 446 |
</div> |
|---|
| 447 |
</div> |
|---|
| 448 |
|
|---|
| 449 |
<!-- end column --> |
|---|
| 450 |
</div> |
|---|
| 451 |
|
|---|
| 452 |
<!-- |
|---|
| 453 |
TODO |
|---|
| 454 |
* sf-gen, sf-admin |
|---|
| 455 |
* Exemple rapide d'une template, d'un criterion |
|---|
| 456 |
* Classes spécifiques : sfMail, sfPager, sfShoppingCart, sfThumbnail |
|---|
| 457 |
//--> |
|---|
| 458 |
|
|---|
| 459 |
<div style="clear: both"> |
|---|
| 460 |
|
|---|
| 461 |
<div class="footnote"></div> |
|---|
| 462 |
|
|---|
| 463 |
</body> |
|---|
| 464 |
</html> |
|---|