gehe zum Quellcode dieser Datei
Namensbereiche | |
| namespace | Joomla |
Funktionen | |
| accessMenu ($uid, $access, $option) | |
| cancelContent () | |
| changeContent ($cid=null, $state=0, $option) | |
| copyItem ($cid, $sectionid, $option) | |
| copyItemSave ($cid, $sectionid, $option) | |
| editContent ($uid=0, $sectionid=0, $option) | |
| filterCategory ($query, $active=NULL) | |
| go2menu () | |
| go2menuitem () | |
| menuLink ($redirect, $id) | |
| moveSection ($cid, $sectionid, $option) | |
| moveSectionSave (&$cid, $sectionid, $option) | |
| orderContent ($uid, $inc, $option) | |
| removeContent (&$cid, $sectionid, $option) | |
| resethits ($redirect, $id) | |
| saveContent ($sectionid, $task) | |
| saveOrder (&$cid) | |
| toggleFrontPage ($cid, $section, $option) | |
| viewArchive ($sectionid, $option) | |
| viewContent ($sectionid, $option) | |
Variablen | |
| $cid = josGetArrayInts( 'cid' ) | |
| case | $option |
| $sectionid = intval( mosGetParam( $_REQUEST, 'sectionid', 0 ) ) | |
| case | $task |
| case | __pad0__ |
| case | __pad10__ |
| case | __pad11__ |
| case | __pad12__ |
| case | __pad13__ |
| case | __pad14__ |
| case | __pad15__ |
| case | __pad16__ |
| case | __pad17__ |
| case | __pad18__ |
| case | __pad19__ |
| case | __pad1__ |
| case | __pad20__ |
| default | __pad21__ |
| case | __pad2__ |
| case | __pad3__ |
| case | __pad4__ |
| case | __pad5__ |
| case | __pad6__ |
| case | __pad7__ |
| case | __pad8__ |
| case | __pad9__ |
| break | |
| accessMenu | ( | $ | uid, | |
| $ | access, | |||
| $ | option | |||
| ) |
| integer | The id of the content item | |
| integer | The new access level | |
| string | The URL option |
Definiert in Zeile 1254 der Datei admin.content.php.
Benutzt $access, $database, $option, $row, mosCache::cleanCache(), josSpoofCheck(), mosGetParam() und mosRedirect().
01254 { 01255 global $database; 01256 01257 josSpoofCheck(); 01258 01259 $row = new mosContent( $database ); 01260 $row->load( (int)$uid ); 01261 $row->access = $access; 01262 01263 if ( !$row->check() ) { 01264 return $row->getError(); 01265 } 01266 if ( !$row->store() ) { 01267 return $row->getError(); 01268 } 01269 01270 $redirect = mosGetParam( $_POST, 'redirect', $row->sectionid ); 01271 01272 // clean any existing cache files 01273 mosCache::cleanCache( 'com_content' ); 01274 01275 mosRedirect( 'index2.php?option='. $option .'§ionid='. $redirect ); 01276 }

| cancelContent | ( | ) |
Cancels an edit operation
Definiert in Zeile 955 der Datei admin.content.php.
Benutzt $database, $row, josSpoofCheck(), mosGetParam() und mosRedirect().
00955 { 00956 global $database; 00957 00958 josSpoofCheck(); 00959 00960 $row = new mosContent( $database ); 00961 $row->bind( $_POST ); 00962 $row->checkin(); 00963 00964 $redirect = mosGetParam( $_POST, 'redirect', 0 ); 00965 mosRedirect( 'index2.php?option=com_content§ionid='. $redirect ); 00966 }

| changeContent | ( | $ | cid = null, |
|
| $ | state = 0, |
|||
| $ | option | |||
| ) |
Changes the state of one or more content pages
| string | The name of the category section | |
| integer | A unique category id (passed from an edit form) | |
| array | An array of unique category id numbers | |
| integer | 0 if unpublishing, 1 if publishing | |
| string | The name of the current user |
Definiert in Zeile 805 der Datei admin.content.php.
Benutzt $cid, $database, $msg, $my, $option, $query, $row, $total, mosCache::cleanCache(), josSpoofCheck(), mosArrayToInts(), mosGetParam() und mosRedirect().
00805 { 00806 global $database, $my, $task; 00807 00808 josSpoofCheck(); 00809 00810 if (count( $cid ) < 1) { 00811 $action = $state == 1 ? 'publish' : ($state == -1 ? 'archive' : 'unpublish'); 00812 echo "<script> alert('Select an item to $action'); window.history.go(-1);</script>\n"; 00813 exit; 00814 } 00815 00816 mosArrayToInts( $cid ); 00817 $total = count ( $cid ); 00818 $cids = 'id=' . implode( ' OR id=', $cid ); 00819 00820 $query = "UPDATE #__content" 00821 . "\n SET state = " . (int) $state . ", modified = " . $database->Quote( date( 'Y-m-d H:i:s' ) ) 00822 . "\n WHERE ( $cids ) AND ( checked_out = 0 OR (checked_out = " . (int) $my->id . ") )" 00823 ; 00824 $database->setQuery( $query ); 00825 if (!$database->query()) { 00826 echo "<script> alert('".$database->getErrorMsg()."'); window.history.go(-1); </script>\n"; 00827 exit(); 00828 } 00829 00830 if (count( $cid ) == 1) { 00831 $row = new mosContent( $database ); 00832 $row->checkin( $cid[0] ); 00833 } 00834 00835 // clean any existing cache files 00836 mosCache::cleanCache( 'com_content' ); 00837 00838 switch ( $state ) { 00839 case -1: 00840 $msg = $total .' Item(s) successfully Archived'; 00841 break; 00842 00843 case 1: 00844 $msg = $total .' Item(s) successfully Published'; 00845 break; 00846 00847 case 0: 00848 default: 00849 if ( $task == 'unarchive' ) { 00850 $msg = $total .' Item(s) successfully Unarchived'; 00851 } else { 00852 $msg = $total .' Item(s) successfully Unpublished'; 00853 } 00854 break; 00855 } 00856 00857 $redirect = mosGetParam( $_POST, 'redirect', $row->sectionid ); 00858 $rtask = strval( mosGetParam( $_POST, 'returntask', '' ) ); 00859 if ( $rtask ) { 00860 $rtask = '&task='. $rtask; 00861 } else { 00862 $rtask = ''; 00863 } 00864 00865 mosRedirect( 'index2.php?option='. $option . $rtask .'§ionid='. $redirect .'&mosmsg='. $msg ); 00866 }

| copyItem | ( | $ | cid, | |
| $ | sectionid, | |||
| $ | option | |||
| ) |
Form for copying item(s)
Definiert in Zeile 1102 der Datei admin.content.php.
Benutzt $cid, $database, $items, $option, $query, $rows, $sectionid, HTML_content::copySection(), mosArrayToInts(), NULL und mosHTML::selectList().
01102 { 01103 global $database; 01104 01105 if (!is_array( $cid ) || count( $cid ) < 1) { 01106 echo "<script> alert('Select an item to move'); window.history.go(-1);</script>\n"; 01107 exit; 01108 } 01109 01110 //seperate contentids 01111 mosArrayToInts( $cid ); 01112 $cids = 'a.id=' . implode( ' OR a.id=', $cid ); 01113 ## Content Items query 01114 $query = "SELECT a.title" 01115 . "\n FROM #__content AS a" 01116 . "\n WHERE ( $cids )" 01117 . "\n ORDER BY a.title" 01118 ; 01119 $database->setQuery( $query ); 01120 $items = $database->loadObjectList(); 01121 01122 ## Section & Category query 01123 $query = "SELECT CONCAT_WS(',',s.id,c.id) AS `value`, CONCAT_WS(' // ', s.name, c.name) AS `text`" 01124 . "\n FROM #__sections AS s" 01125 . "\n INNER JOIN #__categories AS c ON c.section = s.id" 01126 . "\n WHERE s.scope = 'content'" 01127 . "\n ORDER BY s.name, c.name" 01128 ; 01129 $database->setQuery( $query ); 01130 $rows = $database->loadObjectList(); 01131 // build the html select list 01132 $sectCatList = mosHTML::selectList( $rows, 'sectcat', 'class="inputbox" size="10"', 'value', 'text', NULL ); 01133 01134 HTML_content::copySection( $option, $cid, $sectCatList, $sectionid, $items ); 01135 }

| copyItemSave | ( | $ | cid, | |
| $ | sectionid, | |||
| $ | option | |||
| ) |
saves Copies of items
Definiert in Zeile 1141 der Datei admin.content.php.
Benutzt $cid, $database, $i, $msg, $option, $query, $row, $section, $sectionid, $total, mosCache::cleanCache(), josSpoofCheck(), mosGetParam(), mosRedirect() und NULL.
01141 { 01142 global $database; 01143 01144 josSpoofCheck(); 01145 01146 $sectcat = mosGetParam( $_POST, 'sectcat', '' ); 01147 //seperate sections and categories from selection 01148 $sectcat = explode( ',', $sectcat ); 01149 list( $newsect, $newcat ) = $sectcat; 01150 01151 if ( !$newsect && !$newcat ) { 01152 mosRedirect( 'index.php?option=com_content§ionid='. $sectionid .'&mosmsg=An error has occurred' ); 01153 } 01154 01155 // find section name 01156 $query = "SELECT a.name" 01157 . "\n FROM #__sections AS a" 01158 . "\n WHERE a.id = " . (int) $newsect 01159 ; 01160 $database->setQuery( $query ); 01161 $section = $database->loadResult(); 01162 01163 // find category name 01164 $query = "SELECT a.name" 01165 . "\n FROM #__categories AS a" 01166 . "\n WHERE a.id = " . (int) $newcat 01167 ; 01168 $database->setQuery( $query ); 01169 $category = $database->loadResult(); 01170 01171 $total = count( $cid ); 01172 for ( $i = 0; $i < $total; $i++ ) { 01173 $row = new mosContent( $database ); 01174 01175 // main query 01176 $query = "SELECT a.*" 01177 . "\n FROM #__content AS a" 01178 . "\n WHERE a.id = " . (int) $cid[$i] 01179 ; 01180 $database->setQuery( $query ); 01181 $item = $database->loadObjectList(); 01182 01183 // values loaded into array set for store 01184 $row->id = NULL; 01185 $row->sectionid = $newsect; 01186 $row->catid = $newcat; 01187 $row->hits = '0'; 01188 $row->ordering = '0'; 01189 $row->title = $item[0]->title; 01190 $row->title_alias = $item[0]->title_alias; 01191 $row->introtext = $item[0]->introtext; 01192 $row->fulltext = $item[0]->fulltext; 01193 $row->state = $item[0]->state; 01194 $row->mask = $item[0]->mask; 01195 $row->created = $item[0]->created; 01196 $row->created_by = $item[0]->created_by; 01197 $row->created_by_alias = $item[0]->created_by_alias; 01198 $row->modified = $item[0]->modified; 01199 $row->modified_by = $item[0]->modified_by; 01200 $row->checked_out = $item[0]->checked_out; 01201 $row->checked_out_time = $item[0]->checked_out_time; 01202 $row->publish_up = $item[0]->publish_up; 01203 $row->publish_down = $item[0]->publish_down; 01204 $row->images = $item[0]->images; 01205 $row->attribs = $item[0]->attribs; 01206 $row->version = $item[0]->parentid; 01207 $row->parentid = $item[0]->parentid; 01208 $row->metakey = $item[0]->metakey; 01209 $row->metadesc = $item[0]->metadesc; 01210 $row->access = $item[0]->access; 01211 01212 if (!$row->check()) { 01213 echo "<script> alert('".$row->getError()."'); window.history.go(-1); </script>\n"; 01214 exit(); 01215 } 01216 if (!$row->store()) { 01217 echo "<script> alert('".$row->getError()."'); window.history.go(-1); </script>\n"; 01218 exit(); 01219 } 01220 $row->updateOrder( "catid='". (int) $row->catid ."' AND state >= 0" ); 01221 } 01222 01223 // clean any existing cache files 01224 mosCache::cleanCache( 'com_content' ); 01225 01226 $msg = $total. ' Item(s) successfully copied to Section: '. $section .', Category: '. $category; 01227 mosRedirect( 'index2.php?option='. $option .'§ionid='. $sectionid .'&mosmsg='. $msg ); 01228 }

| editContent | ( | $ | uid = 0, |
|
| $ | sectionid = 0, |
|||
| $ | option | |||
| ) |
Compiles information to add or edit the record
| database | A database connector object | |
| integer | The unique id of the record to edit (0 if new) | |
| integer | The id of the content section |
Definiert in Zeile 371 der Datei admin.content.php.
Benutzt $and, $database, $images, $mainframe, $mosConfig_absolute_path, $mosConfig_live_site, $mosConfig_offset, $my, $nullDate, $option, $params, $pos, $query, $row, $section, $sectionid, ampReplace(), HTML_content::editContent(), GetImageFolders(), GetImages(), GetSavedImages(), mosHTML::makeOption(), mosArrayToInts(), mosFormatDate(), mosGetParam(), mosRedirect(), NULL, ReadImagesX() und mosHTML::selectList().
00371 { 00372 global $database, $my, $mainframe; 00373 global $mosConfig_absolute_path, $mosConfig_live_site, $mosConfig_offset; 00374 00375 $redirect = strval( mosGetParam( $_POST, 'redirect', '' ) ); 00376 $nullDate = $database->getNullDate(); 00377 00378 if ( !$redirect ) { 00379 $redirect = $sectionid; 00380 } 00381 00382 // load the row from the db table 00383 $row = new mosContent( $database ); 00384 $row->load( (int)$uid ); 00385 00386 if ($uid) { 00387 $sectionid = $row->sectionid; 00388 if ($row->state < 0) { 00389 mosRedirect( 'index2.php?option=com_content§ionid='. $row->sectionid, 'You cannot edit an archived item' ); 00390 } 00391 } 00392 00393 // fail if checked out not by 'me' 00394 if ($row->checked_out && $row->checked_out != $my->id) { 00395 mosRedirect( 'index2.php?option=com_content', 'The module '. $row->title .' is currently being edited by another administrator' ); 00396 } 00397 00398 $selected_folders = NULL; 00399 if ($uid) { 00400 $row->checkout( $my->id ); 00401 00402 if (trim( $row->images )) { 00403 $row->images = explode( "\n", $row->images ); 00404 } else { 00405 $row->images = array(); 00406 } 00407 00408 $row->created = mosFormatDate( $row->created, _CURRENT_SERVER_TIME_FORMAT ); 00409 $row->modified = $row->modified == $nullDate ? '' : mosFormatDate( $row->modified, _CURRENT_SERVER_TIME_FORMAT ); 00410 $row->publish_up = mosFormatDate( $row->publish_up, _CURRENT_SERVER_TIME_FORMAT ); 00411 00412 if (trim( $row->publish_down ) == $nullDate || trim( $row->publish_down ) == '' || trim( $row->publish_down ) == '-' ) { 00413 $row->publish_down = 'Never'; 00414 } 00415 $row->publish_down = mosFormatDate( $row->publish_down, _CURRENT_SERVER_TIME_FORMAT ); 00416 00417 $query = "SELECT name" 00418 . "\n FROM #__users" 00419 . "\n WHERE id = " . (int) $row->created_by 00420 ; 00421 $database->setQuery( $query ); 00422 $row->creator = $database->loadResult(); 00423 00424 // test to reduce unneeded query 00425 if ( $row->created_by == $row->modified_by ) { 00426 $row->modifier = $row->creator; 00427 } else { 00428 $query = "SELECT name" 00429 . "\n FROM #__users" 00430 . "\n WHERE id = " . (int) $row->modified_by 00431 ; 00432 $database->setQuery( $query ); 00433 $row->modifier = $database->loadResult(); 00434 } 00435 00436 $query = "SELECT content_id" 00437 . "\n FROM #__content_frontpage" 00438 . "\n WHERE content_id = " . (int) $row->id 00439 ; 00440 $database->setQuery( $query ); 00441 $row->frontpage = $database->loadResult(); 00442 00443 // get list of links to this item 00444 $and = "\n AND componentid = " . (int) $row->id; 00445 $menus = mosAdminMenus::Links2Menu( 'content_item_link', $and ); 00446 } else { 00447 if ( !$sectionid && @$_POST['filter_sectionid'] ) { 00448 $sectionid = $_POST['filter_sectionid']; 00449 } 00450 if ( @$_POST['catid'] ) { 00451 $row->catid = (int)$_POST['catid']; 00452 $category = new mosCategory( $database ); 00453 $category->load( (int)$_POST['catid'] ); 00454 $sectionid = $category->section; 00455 } else { 00456 $row->catid = 0; 00457 } 00458 00459 $row->sectionid = $sectionid; 00460 $row->version = 0; 00461 $row->state = 1; 00462 $row->ordering = 0; 00463 $row->images = array(); 00464 $row->publish_up = date( 'Y-m-d H:i:s', time() + ( $mosConfig_offset * 60 * 60 ) ); 00465 $row->publish_down = 'Never'; 00466 $row->creator = ''; 00467 $row->modified = $nullDate; 00468 $row->modifier = ''; 00469 $row->frontpage = 0; 00470 $menus = array(); 00471 } 00472 00473 $javascript = "onchange=\"changeDynaList( 'catid', sectioncategories, document.adminForm.sectionid.options[document.adminForm.sectionid.selectedIndex].value, 0, 0);\""; 00474 00475 $query = "SELECT s.id, s.title" 00476 . "\n FROM #__sections AS s" 00477 . "\n ORDER BY s.ordering"; 00478 $database->setQuery( $query ); 00479 if ( $sectionid == 0 ) { 00480 $sections[] = mosHTML::makeOption( '-1', 'Select Section', 'id', 'title' ); 00481 $sections = array_merge( $sections, $database->loadObjectList() ); 00482 $lists['sectionid'] = mosHTML::selectList( $sections, 'sectionid', 'class="inputbox" size="1" '. $javascript, 'id', 'title' ); 00483 } else { 00484 $sections = $database->loadObjectList(); 00485 $lists['sectionid'] = mosHTML::selectList( $sections, 'sectionid', 'class="inputbox" size="1" '. $javascript, 'id', 'title', intval( $row->sectionid ) ); 00486 } 00487 00488 $contentSection = ''; 00489 foreach($sections as $section) { 00490 $section_list[] = $section->id; 00491 // get the type name - which is a special category 00492 if ($row->sectionid){ 00493 if ( $section->id == $row->sectionid ) { 00494 $contentSection = $section->title; 00495 } 00496 } else { 00497 if ( $section->id == $sectionid ) { 00498 $contentSection = $section->title; 00499 } 00500 } 00501 } 00502 00503 $sectioncategories = array(); 00504 $sectioncategories[-1] = array(); 00505 $sectioncategories[-1][] = mosHTML::makeOption( '-1', 'Select Category', 'id', 'name' ); 00506 mosArrayToInts( $section_list ); 00507 $section_list = 'section=' . implode( ' OR section=', $section_list ); 00508 00509 $query = "SELECT id, name, section" 00510 . "\n FROM #__categories" 00511 . "\n WHERE ( $section_list )" 00512 . "\n ORDER BY ordering" 00513 ; 00514 $database->setQuery( $query ); 00515 $cat_list = $database->loadObjectList(); 00516 foreach($sections as $section) { 00517 $sectioncategories[$section->id] = array(); 00518 $rows2 = array(); 00519 foreach($cat_list as $cat) { 00520 if ($cat->section == $section->id) { 00521 $rows2[] = $cat; 00522 } 00523 } 00524 foreach($rows2 as $row2) { 00525 $sectioncategories[$section->id][] = mosHTML::makeOption( $row2->id, $row2->name, 'id', 'name' ); 00526 } 00527 } 00528 00529 // get list of categories 00530 if ( !$row->catid && !$row->sectionid ) { 00531 $categories[] = mosHTML::makeOption( '-1', 'Select Category', 'id', 'name' ); 00532 $lists['catid'] = mosHTML::selectList( $categories, 'catid', 'class="inputbox" size="1"', 'id', 'name' ); 00533 } else { 00534 $categoriesA = array(); 00535 if ( $sectionid == 0 ) { 00536 //$where = "\n WHERE section NOT LIKE '%com_%'"; 00537 foreach($cat_list as $cat) { 00538 $categoriesA[] = $cat; 00539 } 00540 } else { 00541 //$where = "\n WHERE section = '$sectionid'"; 00542 foreach($cat_list as $cat) { 00543 if ($cat->section == $sectionid) { 00544 $categoriesA[] = $cat; 00545 } 00546 } 00547 } 00548 $categories[] = mosHTML::makeOption( '-1', 'Select Category', 'id', 'name' ); 00549 $categories = array_merge( $categories, $categoriesA ); 00550 $lists['catid'] = mosHTML::selectList( $categories, 'catid', 'class="inputbox" size="1"', 'id', 'name', intval( $row->catid ) ); 00551 } 00552 00553 // build the html select list for ordering 00554 $query = "SELECT ordering AS value, title AS text" 00555 . "\n FROM #__content" 00556 . "\n WHERE catid = " . (int) $row->catid 00557 . "\n AND state >= 0" 00558 . "\n ORDER BY ordering" 00559 ; 00560 $lists['ordering'] = mosAdminMenus::SpecificOrdering( $row, $uid, $query, 1 ); 00561 00562 // pull param column from category info 00563 $query = "SELECT params" 00564 . "\n FROM #__categories" 00565 . "\n WHERE id = " . (int) $row->catid 00566 ; 00567 $database->setQuery( $query ); 00568 $categoryParam = $database->loadResult(); 00569 00570 $paramsCat = new mosParameters( $categoryParam, $mainframe->getPath( 'com_xml', 'com_categories' ), 'component' ); 00571 $selected_folders = $paramsCat->get( 'imagefolders', '' ); 00572 00573 if ( !$selected_folders ) { 00574 $selected_folders = '*2*'; 00575 } 00576 00577 // check if images utilizes settings from section 00578 if ( strpos( $selected_folders, '*2*' ) !== false ) { 00579 unset( $selected_folders ); 00580 // load param column from section info 00581 $query = "SELECT params" 00582 . "\n FROM #__sections" 00583 . "\n WHERE id = " . (int) $row->sectionid 00584 ; 00585 $database->setQuery( $query ); 00586 $sectionParam = $database->loadResult(); 00587 00588 $paramsSec = new mosParameters( $sectionParam, $mainframe->getPath( 'com_xml', 'com_sections' ), 'component' ); 00589 $selected_folders = $paramsSec->get( 'imagefolders', '' ); 00590 } 00591 00592 if ( trim( $selected_folders ) ) { 00593 $temps = explode( ',', $selected_folders ); 00594 foreach( $temps as $temp ) { 00595 $temp = ampReplace( $temp); 00596 $folders[] = mosHTML::makeOption( $temp, $temp ); 00597 } 00598 } else { 00599 $folders[] = mosHTML::makeOption( '*1*' ); 00600 } 00601 00602 // calls function to read image from directory 00603 $pathA = $mosConfig_absolute_path .'/images/stories'; 00604 $pathL = $mosConfig_live_site .'/images/stories'; 00605 $images = array(); 00606 00607 if ( $folders[0]->value == '*1*' ) { 00608 $folders = array(); 00609 $folders[] = mosHTML::makeOption( '/' ); 00610 mosAdminMenus::ReadImages( $pathA, '/', $folders, $images ); 00611 } else { 00612 mosAdminMenus::ReadImagesX( $folders, $images ); 00613 } 00614 00615 // list of folders in images/stories/ 00616 $lists['folders'] = mosAdminMenus::GetImageFolders( $folders, $pathL ); 00617 // list of images in specfic folder in images/stories/ 00618 $lists['imagefiles'] = mosAdminMenus::GetImages( $images, $pathL, $folders ); 00619 // list of saved images 00620 $lists['imagelist'] = mosAdminMenus::GetSavedImages( $row, $pathL ); 00621 00622 // build list of users 00623 $active = ( intval( $row->created_by ) ? intval( $row->created_by ) : $my->id ); 00624 $lists['created_by'] = mosAdminMenus::UserSelect( 'created_by', $active ); 00625 // build the select list for the image position alignment 00626 $lists['_align'] = mosAdminMenus::Positions( '_align' ); 00627 // build the select list for the image caption alignment 00628 $lists['_caption_align'] = mosAdminMenus::Positions( '_caption_align' ); 00629 // build the html select list for the group access 00630 $lists['access'] = mosAdminMenus::Access( $row ); 00631 // build the html select list for menu selection 00632 $lists['menuselect'] = mosAdminMenus::MenuSelect( ); 00633 00634 // build the select list for the image caption position 00635 $pos[] = mosHTML::makeOption( 'bottom', _CMN_BOTTOM ); 00636 $pos[] = mosHTML::makeOption( 'top', _CMN_TOP ); 00637 $lists['_caption_position'] = mosHTML::selectList( $pos, '_caption_position', 'class="inputbox" size="1"', 'value', 'text' ); 00638 00639 // get params definitions 00640 $params = new mosParameters( $row->attribs, $mainframe->getPath( 'com_xml', 'com_content' ), 'component' ); 00641 00642 HTML_content::editContent( $row, $contentSection, $lists, $sectioncategories, $images, $params, $option, $redirect, $menus ); 00643 }

| filterCategory | ( | $ | query, | |
| $ | active = NULL | |||
| ) |
Definiert in Zeile 1278 der Datei admin.content.php.
Benutzt $database, $query, mosHTML::makeOption() und mosHTML::selectList().
Wird benutzt von viewArchive() und viewContent().
01278 { 01279 global $database; 01280 01281 $categories[] = mosHTML::makeOption( '0', _SEL_CATEGORY ); 01282 $database->setQuery( $query ); 01283 $categories = array_merge( $categories, $database->loadObjectList() ); 01284 01285 $category = mosHTML::selectList( $categories, 'catid', 'class="inputbox" size="1" onchange="document.adminForm.submit( );"', 'value', 'text', $active ); 01286 01287 return $category; 01288 }


| go2menu | ( | ) |
Definiert in Zeile 1327 der Datei admin.content.php.
Benutzt $menu, mosGetParam() und mosRedirect().
01327 { 01328 $menu = strval( mosGetParam( $_POST, 'menu', 'mainmenu' ) ); 01329 01330 mosRedirect( 'index2.php?option=com_menus&menutype='. $menu ); 01331 }

| go2menuitem | ( | ) |
Definiert in Zeile 1333 der Datei admin.content.php.
Benutzt $id, $menu, mosGetParam() und mosRedirect().
01333 { 01334 $menu = strval( mosGetParam( $_POST, 'menu', 'mainmenu' ) ); 01335 $id = intval( mosGetParam( $_POST, 'menuid', 0 ) ); 01336 01337 mosRedirect( 'index2.php?option=com_menus&menutype='. $menu .'&task=edit&hidemainmenu=1&id='. $id ); 01338 }

| menuLink | ( | $ | redirect, | |
| $ | id | |||
| ) |
Definiert in Zeile 1290 der Datei admin.content.php.
Benutzt $database, $id, $link, $menu, $msg, $row, ampReplace(), mosCache::cleanCache(), josSpoofCheck(), mosGetParam() und mosRedirect().
01290 { 01291 global $database; 01292 0