Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
dev:gsoc09_pr [2009/08/14 00:42] kethees |
dev:gsoc09_pr [2009/08/14 01:21] (current) kethees |
||
---|---|---|---|
Line 23: | Line 23: | ||
== Future Enhancement(s) == | == Future Enhancement(s) == | ||
+ | * Integrating Person Registry with other person oriented modules. | ||
* Tracking person roles such missing person, disaster victim, logistic oriented person and etc within PR. | * Tracking person roles such missing person, disaster victim, logistic oriented person and etc within PR. | ||
- | + | * Enhancing Person API and lib_chart.inc library functionalities. | |
===== Person API ===== | ===== Person API ===== | ||
Line 34: | Line 34: | ||
The function for person form is as follows: | The function for person form is as follows: | ||
- | <code php> | + | <code php> |
- | shn_form_person(); | + | shn_form_person(); |
- | | + | </ |
Above function will include form elements in your form | Above function will include form elements in your form | ||
- | <code php> | + | <code php> |
- | <input name=" | + | <input name=" |
- | <input name=" | + | <input name=" |
- | <input value=" | + | <input value=" |
- | | + | </ |
In Add button click event person form is poped up with following form fields | In Add button click event person form is poped up with following form fields | ||
Line 59: | Line 59: | ||
person_class.php | person_class.php | ||
- | <code php> | + | <code php> |
* $person = New Person(); | * $person = New Person(); | ||
Line 66: | Line 66: | ||
* $person-> | * $person-> | ||
* $person-> | * $person-> | ||
- | </ | + | </ |
group_class.php | group_class.php | ||
- | <code php> | + | <code php> |
* $group = New Group(); | * $group = New Group(); | ||
Line 77: | Line 77: | ||
* $group-> | * $group-> | ||
* $group-> | * $group-> | ||
- | | + | </ |
address_class.php | address_class.php | ||
- | | + | <code php> |
* $address = New Address(); | * $address = New Address(); | ||
Line 86: | Line 86: | ||
* $address-> | * $address-> | ||
* $address-> | * $address-> | ||
- | | + | </ |
identity_class.php | identity_class.php | ||
- | | + | <code php> |
* $identity = New Identity(); | * $identity = New Identity(); | ||
Line 95: | Line 95: | ||
* $identity-> | * $identity-> | ||
* $identity-> | * $identity-> | ||
- | | + | </ |
+ | |||
+ | ===== Open Flash Chart Library ===== | ||
+ | |||
+ | This allows you to creat a chart with Flash capability. In order to use following function, you need to do is include lib_chart.inc library and call the shn_draw_chart() API function. | ||
+ | |||
+ | == Chart API == | ||
+ | |||
+ | * lib_chart.inc library includes following code snippets. | ||
+ | <code php> | ||
+ | | ||
+ | | ||
+ | |||
+ | | ||
+ | { | ||
+ | $base = ' | ||
+ | | ||
+ | } | ||
+ | |||
+ | </ | ||
+ | |||
+ | Sample $data_file_url formed via stream as follows. | ||
+ | |||
+ | e.g: | ||
+ | <code php> | ||
+ | $url_gender = ' | ||
+ | </ | ||
+ | |||
+ | <code php> | ||
+ | | ||
+ | $array = Data:: | ||
+ | $data = $array[' | ||
+ | $label = $array[' | ||
+ | |||
+ | foreach($data as $d){ | ||
+ | | ||
+ | } | ||
+ | |||
+ | foreach($data as $key=> | ||
+ | | ||
+ | } | ||
+ | $g = new graph(); | ||
+ | $g-> | ||
+ | $g-> | ||
+ | $g-> | ||
+ | $g-> | ||
+ | $g-> | ||
+ | $g-> | ||
+ | echo $g-> | ||
+ | } | ||
+ | </ | ||
== Ontology == | == Ontology == | ||
* [[dev: | * [[dev: |