16 require_once SQ_INCLUDE_PATH.
'/asset_edit/asset_edit_fns.inc';
17 require_once SQ_CORE_PACKAGE_PATH.
'/data_source/data_source/data_source_edit_fns.inc';
39 parent::__construct();
56 $url = $asset->attr(
'url');
57 $wa = $asset->writeAccess(
'attributes');
59 text_box(
'rss_link', $url, 30);
81 $url = $asset->attr(
'url');
82 if (isset($_POST[
'rss_link'])) {
83 $link = $_POST[
'rss_link'];
84 if (strcasecmp($url, $link) != 0) {
85 $asset->setAttrValue(
'url', $link);
87 $asset->setResultSet(Array(), $link);
88 $asset->getResultSet($link);
109 $wa = $asset->writeAccess(
'attributes');
110 $date_f = $asset->attr(
'date_field');
113 $shadow_asset = $asset->getAsset($asset->id.
':0');
114 $keywords = $shadow_asset->getAvailableKeywords();
115 $options = Array(
'' =>
'-- Leave Empty --');
118 foreach ($keywords as $key => $desc) {
119 if (strstr($key,
'ds__') && (stristr($key,
'date') || stristr($key,
'publish'))) {
120 $options[$key] = $key;
123 combo_box($prefix.
'_date_field', $options, FALSE, $date_f);
145 if ($asset->writeAccess(
'attributes')) {
146 if (isset($_POST[$prefix.
'_date_field'])) {
147 $date_f = $_POST[$prefix.
'_date_field'];
148 $asset->setAttrValue(
'date_field', $date_f);