Before you begin
Before you can complete this task, you must have completed
the following tasks:
About this task
You must create a code plug-in project to contain the Java and PHP pattern instance modification
code that you write. You can distribute the Java and PHP code plug-in project in the
pattern archive for the associated user-defined
pattern to pattern users. See
Packaging and distributing pattern plug-ins.
Procedure
To create a Java and
PHP code plug-in project:
- Open the Pattern
Configuration tab of
the Pattern Authoring editor.
- Click Add. The Add
Java or PHP Code window opens.
- Click New Project. The New
Pattern Authoring Java and PHP Project window opens.
- Enter a plug-in ID for the new code plug-in. After
the plug-in is created, the plug-in ID is shown in the Projects section
of the Application
Development view. The plug-in
ID is also used to identify the plug-in when you distribute it to
pattern users.
- Optional: If you want to include PHP code in
the code plug-in, select Add PHP support to the project. If you select this option a main.php template
and example PHP scripts are added to the code plug-in.
- Optional: If you want to include a Java class in the code plug-in, complete the
following steps:
- Select Add an example pattern authoring Java
class to the project.
- Enter a package name for the Java class in the Package name field.
- Enter a class name for the Java class
in the Class name field.
- Click Finish. The New
Pattern Authoring Java and PHP Project window closes.
- You can now add Java or
PHP code to a user-defined pattern: