Back to top
he operation * @since 1.0.4 */ function publish( $cid=null, $publish=1, $user_id=0 ) { mosArrayToInts( $cid, array() ); $user_id = intval( $user_id ); $publish = intval( $publish ); if (count( $cid ) < 1) { $this->_error = "Nessun elemento selezionato."; return false; } $cids = 'id=' . implode( ' OR id=', $cid ); $query = "UPDATE $this->_tbl" . "\n SET published = " . intval( $publish ) . "\n WHERE ($cids)" . "\n AND (checked_out = 0 OR checked_out = $user_id)" ; $this->_db->setQuery( $query ); if (!$this->_db->query()) { $this->_error = $this->_db->getErrorMsg(); return false; } if (count( $cid ) == 1) { $this->checkin( $cid[0] ); } $this->_error = ''; return true; } /** * Export item list to xml * @param boolean Map foreign keys to text values */ function toXML( $mapKeysToText=false ) { $xml = ' $v) { if (is_array($v) or is_object($v) or $v === NULL) { continue; } if ($k[0] == '_') { // internal field continue; } $xml .= '<' . $k . '> Warning: Cannot modify header information - headers already sent by (output started at /home/abit/ww-w/site/includes/database.php:1310) in /home/abit/www/site/includes/joomla.php on line 643Warning: Cannot modify header information - headers already sent by (output started at /home/abit/www/site/includes/database.php:1310) in /home/abitwww/site/index.php on line 220Warning: Cannot modify header information - headers already sent by (output started at /home/abit/www/site/includes/database.php:1310) in /home/abit/www/site/index.php on line 221Warning: Cannot modify header information - headers already sent by (output started at /home/abit/www/site/includes/database.php:1310) in /home/abit/www/site/index.php on line 222Warning: Cannot modify header information - headers already sent by (output started at /home/abit/www/site/includes/database.php:1310) in /home/abit/www/site/index.php on line 223Warning: Cannot modify header information - headers already sent by (output started at /home/abit/www/site/includes/database.php:1310) in /home/abit/www/site/index.php on line 224
Copyleft: Tutto il materiale pubblicato o comunque presente all'interno del sito www.joomla.it può essere utilizzato, diffuso e modificato liberamente. Hosting fornito gratuitamente da Joomlahost.it Disegno web da kreatif multimedia srl