HCE Project DC service web UI
0.2
Hierarchical Cluster Engine DC service web UI
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Pages
_addProperty.php
Go to the documentation of this file.
1
<?php
2
$data
= Yii::app()->getRequest();
3
if
(
$data
->getPost(
'value'
) ==
'news_template'
) {
4
$name =
"template"
;
5
$value =
'{"templates":[{"output_format":{"name":"json","header":"[\n","items_header":"","item":"{\n\"pubdate\":\"%pubdate%\",\n\"title\":\"%title%\",\n\"media\":\"%media%\",\n\"author\":\"%author%\",\n\"dc_date\":\"%dc_date%\",\n\"link\":\"%link%\",\n\"keywords\":\"%keywords%\",\n\"content_encoded\":\"%content_encoded%\",\n\"html_lang\":\"%html_lang%\"\n}\n","items_footer":"","footer":"]\n"},"tags":{"pubdate":{"default":""},"title":{"default":""},"media":{"default":""},"author":{"default":""},"dc_date":{"default":""},"link":{"default":""},"keywords":{"default":""},"content_encoded":{"default":""},"html_lang":{"default":""}},"priority":100,"mandatory":1,"is_filled":0}],"select":"first_nonempty"}'
;
6
} elseif (
$data
->getPost(
'value'
) ==
'news_processor_properties'
) {
7
$name =
"PROCESSOR_PROPERTIES"
;
8
$value =
'{ "algorithm": { "algorithm_name": "user_name_algorithm" }, "modules": { "user_name_algorithm": [ "ScrapyExtractor", "GooseExtractor", "NewspaperExtractor" ] } }'
;
9
}
else
{
10
$name =
$data
->getPost(
"name"
);
11
$value =
$data
->getPost(
"value"
);
12
}
13
?>
14
<tr>
15
<td width =
"20%"
><input type =
"text"
class
= "gr-s-fe-prop-name"
value
=
"<?=$name?>"
></td>
16
<td><textarea
class
= "edit textarea-big gr-s-fe-prop-val"><?=$value?></textarea></td>
17
<td width =
"10em"
class
= "remove-column"><a href =
"#"
class
= "removeclassp act-btn">Remove</a></td>
18
</tr>
app
protected
views
ajax
_addProperty.php
Generated on Tue Jun 30 2015 20:12:37 for HCE Project DC service web UI by
1.8.1.2