際際滷

際際滷Share a Scribd company logo
PHPDocs @author Pablo V鱈quez < [email_address] >
Agenda Explanation of the require and most used tags Tips & Tricks Example
@package Specify package to group classes or functions and defines into. Usage: @package Navigation Generates a warning if not included 2 types: page-level package (defines, functions, includes/requires) class-level package (class, all its variables and methods)
@subpackage Specify sub-package to group classes or functions and defines into Usage @ subpackage Ca_Navigation IF @package is not found,  @subpackage is ignored
@var Document the data type of a class variable Usage @var <data_type> Must be a valid PHP datatype: bool, string, int,  mixed , array Use for class data members
@author Author of the current element Can be use on anything Will try to parse the text inside <> as email Usage @author Pablo Viquez <pviquez@schematic.com>
@todo Document changes that will be made in the future Usage @todo One line explaining the todo
@ version  Version of the current document OSPG standard usage: @version $Id$ SVN on command line svn propset svn:keywords Id filename SVN config file: (~/.subversion/config) enable-auto-props = yes  [auto-props]  *.php = svn:keywords=Id  *.* = svn:keywords=Id
@see Display a link to the documentation for an element Usage: @see Navigation Display links ONLY for elements on the documentation, its not for links or external references The parser can be told where to look ::  -Which class to look in for the element. ie classname::$variablename. ()   -When present at the end of elementname, like elementname(), this tells the @see parser to search for a function or method. $   -When present at the beginning of elementname, like $elementname, this tells the @see parser to search for a variable in the current class.
@link Display a hyperlink to a URL in the documentation Usage @link http://www.schematic.com Might be use on any element
@abstract Document an abstract class, class variable or method Use the @abstract tag to declare a method, class variable, or class that must be re-defined in a child class to be valid. The @abstract tag  is only valid in PHP 4 , PHP 5 has a keyword abstract.
@access Access control for an element. Usage @access private|public @access private prevents documentation of the element unless specified by command-line Its not require on PHP5 classes, since functions does have the keyword
@final Document a class method that should never be overridden in a child class. Usage: @final  [description] The @final tag  is only valid in PHP 4 , PHP 5 has a keyword final.
@example (1/2) Include an external example file with syntax highlighting Usage: @example <full_file_path_path |relative_file_path > Used to parse an example file for syntax highlighting and linking to documentation
Inline @example Really cool when you dont want to include a file just display how to use it Usage: /**   * This function was created to show a PHP docs example   *    * You can also do usage examples as follow:    * <code>    * $ca_Navigation = Ca_Navigation();    * echo $ca_Navigation->aSimpleFunction(1,'Pablo');    * </code>    *    */
Tips & Tricks When generating the PHPDocs, always look for errors.html You can use some HTML elements in the documentation: <p>, <b>, <li>, <ol>, <ul>, <code>, <pre> IF for any reason you need to display <b> in the documentation, use double delimiter <<b>>  If you need to close a comment inside of the <code> tag use {@*}

More Related Content

Viewers also liked (20)

Number seriesNumber series
Number series
Are Lavanya
Data localization and translation
Data localization and translationData localization and translation
Data localization and translation
Motti Danino
Number Series: How To Solve Questions with Short Tricks
Number Series: How To Solve Questions with Short TricksNumber Series: How To Solve Questions with Short Tricks
Number Series: How To Solve Questions with Short Tricks
Entrance Exam Info
"Internationalisation with PHP and Intl" source code
"Internationalisation with PHP and Intl" source code"Internationalisation with PHP and Intl" source code
"Internationalisation with PHP and Intl" source code
Daniel_Rhodes
Multi language for php with gettext
Multi language for php with gettextMulti language for php with gettext
Multi language for php with gettext
Binh Quan Duc
Handling multibyte CSV files in PHP
Handling multibyte CSV files in PHPHandling multibyte CSV files in PHP
Handling multibyte CSV files in PHP
Daniel_Rhodes
The Big Documentation Extravaganza
The Big Documentation ExtravaganzaThe Big Documentation Extravaganza
The Big Documentation Extravaganza
Stephan Schmidt
Problem Solving with Algorithms and Data Structures
Problem Solving with Algorithms and Data StructuresProblem Solving with Algorithms and Data Structures
Problem Solving with Algorithms and Data Structures
Yi-Lung Tsai
Grand Rapids PHP Meetup: Behavioral Driven Development with Behat
Grand Rapids PHP Meetup: Behavioral Driven Development with BehatGrand Rapids PHP Meetup: Behavioral Driven Development with Behat
Grand Rapids PHP Meetup: Behavioral Driven Development with Behat
Ryan Weaver
People code events flowchart
People code events flowchartPeople code events flowchart
People code events flowchart
Satish Ap
Internationalisation with PHP and Intl
Internationalisation with PHP and IntlInternationalisation with PHP and Intl
Internationalisation with PHP and Intl
Daniel_Rhodes
Logical reasoning number series
Logical reasoning number seriesLogical reasoning number series
Logical reasoning number series
Praveesh Palakeel
Computer Science Engineering : Data structure & algorithm, THE GATE ACADEMY
Computer Science Engineering : Data structure & algorithm, THE GATE ACADEMYComputer Science Engineering : Data structure & algorithm, THE GATE ACADEMY
Computer Science Engineering : Data structure & algorithm, THE GATE ACADEMY
klirantga
Cmp104 lec 7 algorithm and flowcharts
Cmp104 lec 7 algorithm and flowchartsCmp104 lec 7 algorithm and flowcharts
Cmp104 lec 7 algorithm and flowcharts
kapil078
Data Structure & Algorithms | Computer Science
Data Structure & Algorithms | Computer ScienceData Structure & Algorithms | Computer Science
Data Structure & Algorithms | Computer Science
Transweb Global Inc
Basics of computer science
Basics of computer scienceBasics of computer science
Basics of computer science
Paul Schmidt
RSA Algorithm
RSA AlgorithmRSA Algorithm
RSA Algorithm
West University of Timisoara
Computer Science & Information Systems
Computer Science & Information SystemsComputer Science & Information Systems
Computer Science & Information Systems
Luis Borges Gouveia
C Programming
C ProgrammingC Programming
C Programming
Rumman Ansari
Computer Science Engineering
Computer Science EngineeringComputer Science Engineering
Computer Science Engineering
ITM University, Raipur
Number seriesNumber series
Number series
Are Lavanya
Data localization and translation
Data localization and translationData localization and translation
Data localization and translation
Motti Danino
Number Series: How To Solve Questions with Short Tricks
Number Series: How To Solve Questions with Short TricksNumber Series: How To Solve Questions with Short Tricks
Number Series: How To Solve Questions with Short Tricks
Entrance Exam Info
"Internationalisation with PHP and Intl" source code
"Internationalisation with PHP and Intl" source code"Internationalisation with PHP and Intl" source code
"Internationalisation with PHP and Intl" source code
Daniel_Rhodes
Multi language for php with gettext
Multi language for php with gettextMulti language for php with gettext
Multi language for php with gettext
Binh Quan Duc
Handling multibyte CSV files in PHP
Handling multibyte CSV files in PHPHandling multibyte CSV files in PHP
Handling multibyte CSV files in PHP
Daniel_Rhodes
The Big Documentation Extravaganza
The Big Documentation ExtravaganzaThe Big Documentation Extravaganza
The Big Documentation Extravaganza
Stephan Schmidt
Problem Solving with Algorithms and Data Structures
Problem Solving with Algorithms and Data StructuresProblem Solving with Algorithms and Data Structures
Problem Solving with Algorithms and Data Structures
Yi-Lung Tsai
Grand Rapids PHP Meetup: Behavioral Driven Development with Behat
Grand Rapids PHP Meetup: Behavioral Driven Development with BehatGrand Rapids PHP Meetup: Behavioral Driven Development with Behat
Grand Rapids PHP Meetup: Behavioral Driven Development with Behat
Ryan Weaver
People code events flowchart
People code events flowchartPeople code events flowchart
People code events flowchart
Satish Ap
Internationalisation with PHP and Intl
Internationalisation with PHP and IntlInternationalisation with PHP and Intl
Internationalisation with PHP and Intl
Daniel_Rhodes
Logical reasoning number series
Logical reasoning number seriesLogical reasoning number series
Logical reasoning number series
Praveesh Palakeel
Computer Science Engineering : Data structure & algorithm, THE GATE ACADEMY
Computer Science Engineering : Data structure & algorithm, THE GATE ACADEMYComputer Science Engineering : Data structure & algorithm, THE GATE ACADEMY
Computer Science Engineering : Data structure & algorithm, THE GATE ACADEMY
klirantga
Cmp104 lec 7 algorithm and flowcharts
Cmp104 lec 7 algorithm and flowchartsCmp104 lec 7 algorithm and flowcharts
Cmp104 lec 7 algorithm and flowcharts
kapil078
Data Structure & Algorithms | Computer Science
Data Structure & Algorithms | Computer ScienceData Structure & Algorithms | Computer Science
Data Structure & Algorithms | Computer Science
Transweb Global Inc
Basics of computer science
Basics of computer scienceBasics of computer science
Basics of computer science
Paul Schmidt
Computer Science & Information Systems
Computer Science & Information SystemsComputer Science & Information Systems
Computer Science & Information Systems
Luis Borges Gouveia

Similar to Php Docs (20)

JSP
JSPJSP
JSP
Pratik Vipul
Declarative Development Using Annotations In PHP
Declarative Development Using Annotations In PHPDeclarative Development Using Annotations In PHP
Declarative Development Using Annotations In PHP
Stephan Schmidt
Declarative Development Using Annotations In PHP
Declarative Development Using Annotations In PHPDeclarative Development Using Annotations In PHP
Declarative Development Using Annotations In PHP
stubbles
Jsp , javasportal, jsp basic,
Jsp , javasportal, jsp basic, Jsp , javasportal, jsp basic,
Jsp , javasportal, jsp basic,
rupendra1817
course slides -- powerpoint
course slides -- powerpointcourse slides -- powerpoint
course slides -- powerpoint
webhostingguy
object oriented programming in PHP & Functions
object oriented programming in PHP & Functionsobject oriented programming in PHP & Functions
object oriented programming in PHP & Functions
BackiyalakshmiVenkat
Php File Operations
Php File OperationsPhp File Operations
Php File Operations
mussawir20
WordPress Structure and Best Practices
WordPress Structure and Best PracticesWordPress Structure and Best Practices
WordPress Structure and Best Practices
markparolisi
New Stuff In Php 5.3
New Stuff In Php 5.3New Stuff In Php 5.3
New Stuff In Php 5.3
Chris Chubb
Html5 tutorial
Html5 tutorialHtml5 tutorial
Html5 tutorial
Ali Haydar(Raj)
Html5 tutorial
Html5 tutorialHtml5 tutorial
Html5 tutorial
Edress Oryakhail
Html5 tutorial
Html5 tutorialHtml5 tutorial
Html5 tutorial
Divyesh Bharadava
Html5 tutorial
Html5 tutorialHtml5 tutorial
Html5 tutorial
Arjuman Shaikh
Html5 tutorial
Html5 tutorialHtml5 tutorial
Html5 tutorial
Jitendra Gangwar
PHP
PHP PHP
PHP
webhostingguy
Php
PhpPhp
Php
TSUBHASHRI
Php
PhpPhp
Php
TSUBHASHRI
Php
PhpPhp
Php
TSUBHASHRI
Understanding information content with apache tika
Understanding information content with apache tikaUnderstanding information content with apache tika
Understanding information content with apache tika
Sutthipong Kuruhongsa
Understanding information content with apache tika
Understanding information content with apache tikaUnderstanding information content with apache tika
Understanding information content with apache tika
Sutthipong Kuruhongsa
Declarative Development Using Annotations In PHP
Declarative Development Using Annotations In PHPDeclarative Development Using Annotations In PHP
Declarative Development Using Annotations In PHP
Stephan Schmidt
Declarative Development Using Annotations In PHP
Declarative Development Using Annotations In PHPDeclarative Development Using Annotations In PHP
Declarative Development Using Annotations In PHP
stubbles
Jsp , javasportal, jsp basic,
Jsp , javasportal, jsp basic, Jsp , javasportal, jsp basic,
Jsp , javasportal, jsp basic,
rupendra1817
course slides -- powerpoint
course slides -- powerpointcourse slides -- powerpoint
course slides -- powerpoint
webhostingguy
object oriented programming in PHP & Functions
object oriented programming in PHP & Functionsobject oriented programming in PHP & Functions
object oriented programming in PHP & Functions
BackiyalakshmiVenkat
Php File Operations
Php File OperationsPhp File Operations
Php File Operations
mussawir20
WordPress Structure and Best Practices
WordPress Structure and Best PracticesWordPress Structure and Best Practices
WordPress Structure and Best Practices
markparolisi
New Stuff In Php 5.3
New Stuff In Php 5.3New Stuff In Php 5.3
New Stuff In Php 5.3
Chris Chubb
Understanding information content with apache tika
Understanding information content with apache tikaUnderstanding information content with apache tika
Understanding information content with apache tika
Sutthipong Kuruhongsa
Understanding information content with apache tika
Understanding information content with apache tikaUnderstanding information content with apache tika
Understanding information content with apache tika
Sutthipong Kuruhongsa

Recently uploaded (20)

Replacing RocksDB with ScyllaDB in Kafka Streams by Almog Gavra
Replacing RocksDB with ScyllaDB in Kafka Streams by Almog GavraReplacing RocksDB with ScyllaDB in Kafka Streams by Almog Gavra
Replacing RocksDB with ScyllaDB in Kafka Streams by Almog Gavra
ScyllaDB
Backstage Software Templates for Java Developers
Backstage Software Templates for Java DevelopersBackstage Software Templates for Java Developers
Backstage Software Templates for Java Developers
Markus Eisele
Q4_TLE-7-Lesson-6-Week-6.pptx 4th quarter
Q4_TLE-7-Lesson-6-Week-6.pptx 4th quarterQ4_TLE-7-Lesson-6-Week-6.pptx 4th quarter
Q4_TLE-7-Lesson-6-Week-6.pptx 4th quarter
MariaBarbaraPaglinaw
How Discord Indexes Trillions of Messages: Scaling Search Infrastructure by V...
How Discord Indexes Trillions of Messages: Scaling Search Infrastructure by V...How Discord Indexes Trillions of Messages: Scaling Search Infrastructure by V...
How Discord Indexes Trillions of Messages: Scaling Search Infrastructure by V...
ScyllaDB
EaseUS Partition Master Crack 2025 + Serial Key
EaseUS Partition Master Crack 2025 + Serial KeyEaseUS Partition Master Crack 2025 + Serial Key
EaseUS Partition Master Crack 2025 + Serial Key
kherorpacca127
FinTech - US Annual Funding Report - 2024.pptx
FinTech - US Annual Funding Report - 2024.pptxFinTech - US Annual Funding Report - 2024.pptx
FinTech - US Annual Funding Report - 2024.pptx
Tracxn
BoxLang JVM Language : The Future is Dynamic
BoxLang JVM Language : The Future is DynamicBoxLang JVM Language : The Future is Dynamic
BoxLang JVM Language : The Future is Dynamic
Ortus Solutions, Corp
[Webinar] Scaling Made Simple: Getting Started with No-Code Web Apps
[Webinar] Scaling Made Simple: Getting Started with No-Code Web Apps[Webinar] Scaling Made Simple: Getting Started with No-Code Web Apps
[Webinar] Scaling Made Simple: Getting Started with No-Code Web Apps
Safe Software
Both Feet on the Ground - Generative Artificial Intelligence
Both Feet on the Ground - Generative Artificial IntelligenceBoth Feet on the Ground - Generative Artificial Intelligence
Both Feet on the Ground - Generative Artificial Intelligence
Pete Nieminen
30B Images and Counting: Scaling Canva's Content-Understanding Pipelines by K...
30B Images and Counting: Scaling Canva's Content-Understanding Pipelines by K...30B Images and Counting: Scaling Canva's Content-Understanding Pipelines by K...
30B Images and Counting: Scaling Canva's Content-Understanding Pipelines by K...
ScyllaDB
Build with AI on Google Cloud Session #4
Build with AI on Google Cloud Session #4Build with AI on Google Cloud Session #4
Build with AI on Google Cloud Session #4
Margaret Maynard-Reid
Technology use over time and its impact on consumers and businesses.pptx
Technology use over time and its impact on consumers and businesses.pptxTechnology use over time and its impact on consumers and businesses.pptx
Technology use over time and its impact on consumers and businesses.pptx
kaylagaze
Endpoint Backup: 3 Reasons MSPs Ignore It
Endpoint Backup: 3 Reasons MSPs Ignore ItEndpoint Backup: 3 Reasons MSPs Ignore It
Endpoint Backup: 3 Reasons MSPs Ignore It
MSP360
What Makes "Deep Research"? A Dive into AI Agents
What Makes "Deep Research"? A Dive into AI AgentsWhat Makes "Deep Research"? A Dive into AI Agents
What Makes "Deep Research"? A Dive into AI Agents
Zilliz
Unlocking DevOps Secuirty :Vault & Keylock
Unlocking DevOps Secuirty :Vault & KeylockUnlocking DevOps Secuirty :Vault & Keylock
Unlocking DevOps Secuirty :Vault & Keylock
HusseinMalikMammadli
DealBook of Ukraine: 2025 edition | AVentures Capital
DealBook of Ukraine: 2025 edition | AVentures CapitalDealBook of Ukraine: 2025 edition | AVentures Capital
DealBook of Ukraine: 2025 edition | AVentures Capital
Yevgen Sysoyev
Stronger Together: Combining Data Quality and Governance for Confident AI & A...
Stronger Together: Combining Data Quality and Governance for Confident AI & A...Stronger Together: Combining Data Quality and Governance for Confident AI & A...
Stronger Together: Combining Data Quality and Governance for Confident AI & A...
Precisely
MIND Revenue Release Quarter 4 2024 - Finacial Presentation
MIND Revenue Release Quarter 4 2024 - Finacial PresentationMIND Revenue Release Quarter 4 2024 - Finacial Presentation
MIND Revenue Release Quarter 4 2024 - Finacial Presentation
MIND CTI
UiPath Automation Developer Associate Training Series 2025 - Session 1
UiPath Automation Developer Associate Training Series 2025 - Session 1UiPath Automation Developer Associate Training Series 2025 - Session 1
UiPath Automation Developer Associate Training Series 2025 - Session 1
DianaGray10
Gojek Clone Multi-Service Super App.pptx
Gojek Clone Multi-Service Super App.pptxGojek Clone Multi-Service Super App.pptx
Gojek Clone Multi-Service Super App.pptx
V3cube
Replacing RocksDB with ScyllaDB in Kafka Streams by Almog Gavra
Replacing RocksDB with ScyllaDB in Kafka Streams by Almog GavraReplacing RocksDB with ScyllaDB in Kafka Streams by Almog Gavra
Replacing RocksDB with ScyllaDB in Kafka Streams by Almog Gavra
ScyllaDB
Backstage Software Templates for Java Developers
Backstage Software Templates for Java DevelopersBackstage Software Templates for Java Developers
Backstage Software Templates for Java Developers
Markus Eisele
Q4_TLE-7-Lesson-6-Week-6.pptx 4th quarter
Q4_TLE-7-Lesson-6-Week-6.pptx 4th quarterQ4_TLE-7-Lesson-6-Week-6.pptx 4th quarter
Q4_TLE-7-Lesson-6-Week-6.pptx 4th quarter
MariaBarbaraPaglinaw
How Discord Indexes Trillions of Messages: Scaling Search Infrastructure by V...
How Discord Indexes Trillions of Messages: Scaling Search Infrastructure by V...How Discord Indexes Trillions of Messages: Scaling Search Infrastructure by V...
How Discord Indexes Trillions of Messages: Scaling Search Infrastructure by V...
ScyllaDB
EaseUS Partition Master Crack 2025 + Serial Key
EaseUS Partition Master Crack 2025 + Serial KeyEaseUS Partition Master Crack 2025 + Serial Key
EaseUS Partition Master Crack 2025 + Serial Key
kherorpacca127
FinTech - US Annual Funding Report - 2024.pptx
FinTech - US Annual Funding Report - 2024.pptxFinTech - US Annual Funding Report - 2024.pptx
FinTech - US Annual Funding Report - 2024.pptx
Tracxn
BoxLang JVM Language : The Future is Dynamic
BoxLang JVM Language : The Future is DynamicBoxLang JVM Language : The Future is Dynamic
BoxLang JVM Language : The Future is Dynamic
Ortus Solutions, Corp
[Webinar] Scaling Made Simple: Getting Started with No-Code Web Apps
[Webinar] Scaling Made Simple: Getting Started with No-Code Web Apps[Webinar] Scaling Made Simple: Getting Started with No-Code Web Apps
[Webinar] Scaling Made Simple: Getting Started with No-Code Web Apps
Safe Software
Both Feet on the Ground - Generative Artificial Intelligence
Both Feet on the Ground - Generative Artificial IntelligenceBoth Feet on the Ground - Generative Artificial Intelligence
Both Feet on the Ground - Generative Artificial Intelligence
Pete Nieminen
30B Images and Counting: Scaling Canva's Content-Understanding Pipelines by K...
30B Images and Counting: Scaling Canva's Content-Understanding Pipelines by K...30B Images and Counting: Scaling Canva's Content-Understanding Pipelines by K...
30B Images and Counting: Scaling Canva's Content-Understanding Pipelines by K...
ScyllaDB
Build with AI on Google Cloud Session #4
Build with AI on Google Cloud Session #4Build with AI on Google Cloud Session #4
Build with AI on Google Cloud Session #4
Margaret Maynard-Reid
Technology use over time and its impact on consumers and businesses.pptx
Technology use over time and its impact on consumers and businesses.pptxTechnology use over time and its impact on consumers and businesses.pptx
Technology use over time and its impact on consumers and businesses.pptx
kaylagaze
Endpoint Backup: 3 Reasons MSPs Ignore It
Endpoint Backup: 3 Reasons MSPs Ignore ItEndpoint Backup: 3 Reasons MSPs Ignore It
Endpoint Backup: 3 Reasons MSPs Ignore It
MSP360
What Makes "Deep Research"? A Dive into AI Agents
What Makes "Deep Research"? A Dive into AI AgentsWhat Makes "Deep Research"? A Dive into AI Agents
What Makes "Deep Research"? A Dive into AI Agents
Zilliz
Unlocking DevOps Secuirty :Vault & Keylock
Unlocking DevOps Secuirty :Vault & KeylockUnlocking DevOps Secuirty :Vault & Keylock
Unlocking DevOps Secuirty :Vault & Keylock
HusseinMalikMammadli
DealBook of Ukraine: 2025 edition | AVentures Capital
DealBook of Ukraine: 2025 edition | AVentures CapitalDealBook of Ukraine: 2025 edition | AVentures Capital
DealBook of Ukraine: 2025 edition | AVentures Capital
Yevgen Sysoyev
Stronger Together: Combining Data Quality and Governance for Confident AI & A...
Stronger Together: Combining Data Quality and Governance for Confident AI & A...Stronger Together: Combining Data Quality and Governance for Confident AI & A...
Stronger Together: Combining Data Quality and Governance for Confident AI & A...
Precisely
MIND Revenue Release Quarter 4 2024 - Finacial Presentation
MIND Revenue Release Quarter 4 2024 - Finacial PresentationMIND Revenue Release Quarter 4 2024 - Finacial Presentation
MIND Revenue Release Quarter 4 2024 - Finacial Presentation
MIND CTI
UiPath Automation Developer Associate Training Series 2025 - Session 1
UiPath Automation Developer Associate Training Series 2025 - Session 1UiPath Automation Developer Associate Training Series 2025 - Session 1
UiPath Automation Developer Associate Training Series 2025 - Session 1
DianaGray10
Gojek Clone Multi-Service Super App.pptx
Gojek Clone Multi-Service Super App.pptxGojek Clone Multi-Service Super App.pptx
Gojek Clone Multi-Service Super App.pptx
V3cube

Php Docs

  • 1. PHPDocs @author Pablo V鱈quez < [email_address] >
  • 2. Agenda Explanation of the require and most used tags Tips & Tricks Example
  • 3. @package Specify package to group classes or functions and defines into. Usage: @package Navigation Generates a warning if not included 2 types: page-level package (defines, functions, includes/requires) class-level package (class, all its variables and methods)
  • 4. @subpackage Specify sub-package to group classes or functions and defines into Usage @ subpackage Ca_Navigation IF @package is not found, @subpackage is ignored
  • 5. @var Document the data type of a class variable Usage @var <data_type> Must be a valid PHP datatype: bool, string, int, mixed , array Use for class data members
  • 6. @author Author of the current element Can be use on anything Will try to parse the text inside <> as email Usage @author Pablo Viquez <pviquez@schematic.com>
  • 7. @todo Document changes that will be made in the future Usage @todo One line explaining the todo
  • 8. @ version Version of the current document OSPG standard usage: @version $Id$ SVN on command line svn propset svn:keywords Id filename SVN config file: (~/.subversion/config) enable-auto-props = yes [auto-props] *.php = svn:keywords=Id *.* = svn:keywords=Id
  • 9. @see Display a link to the documentation for an element Usage: @see Navigation Display links ONLY for elements on the documentation, its not for links or external references The parser can be told where to look :: -Which class to look in for the element. ie classname::$variablename. () -When present at the end of elementname, like elementname(), this tells the @see parser to search for a function or method. $ -When present at the beginning of elementname, like $elementname, this tells the @see parser to search for a variable in the current class.
  • 10. @link Display a hyperlink to a URL in the documentation Usage @link http://www.schematic.com Might be use on any element
  • 11. @abstract Document an abstract class, class variable or method Use the @abstract tag to declare a method, class variable, or class that must be re-defined in a child class to be valid. The @abstract tag is only valid in PHP 4 , PHP 5 has a keyword abstract.
  • 12. @access Access control for an element. Usage @access private|public @access private prevents documentation of the element unless specified by command-line Its not require on PHP5 classes, since functions does have the keyword
  • 13. @final Document a class method that should never be overridden in a child class. Usage: @final [description] The @final tag is only valid in PHP 4 , PHP 5 has a keyword final.
  • 14. @example (1/2) Include an external example file with syntax highlighting Usage: @example <full_file_path_path |relative_file_path > Used to parse an example file for syntax highlighting and linking to documentation
  • 15. Inline @example Really cool when you dont want to include a file just display how to use it Usage: /** * This function was created to show a PHP docs example * * You can also do usage examples as follow: * <code> * $ca_Navigation = Ca_Navigation(); * echo $ca_Navigation->aSimpleFunction(1,'Pablo'); * </code> * */
  • 16. Tips & Tricks When generating the PHPDocs, always look for errors.html You can use some HTML elements in the documentation: <p>, <b>, <li>, <ol>, <ul>, <code>, <pre> IF for any reason you need to display <b> in the documentation, use double delimiter <<b>> If you need to close a comment inside of the <code> tag use {@*}