public function saveItems( stdClass $params )
	{
		$this->_checkParams( $params, array( 'site', 'items' ) );
		$this->_setLocale( $params->site );

		$items = ( !is_array( $params->items ) ? array( $params->items ) : $params->items );

		foreach( $items as $entry )
		{
			$item = $this->_createItem( (array) $entry );
			$this->_manager->saveItem( $item );
		}

		return array(
			'items' => $params->items,
			'success' => true,
		);
	}
public function saveItems( stdClass $params )
	{
		$this->_checkParams( $params, array( 'site', 'items' ) );
		$this->_setLocale( $params->site );

		$items = ( !is_array( $params->items ) ? array( $params->items ) : $params->items );

		foreach( $items as $entry )
		{
			$item = $this->_createItem( (array) $entry );
			$this->_manager->saveItem( $item );
		}

		return array(
			'items' => $params->items,
			'success' => true,
		);
	}
public function saveItems ( stdClass $ params ) { $ this -> _checkParams ( $ params , array ( 'site' , 'items' ) ) ; $ this -> _setLocale ( $ params -> site ) ; $ items = ( ! is_array ( $ params -> items ) ? array ( $ params -> items ) : $ params -> items ) ; foreach ( $ items as $ entry ) { $ item = $ this -> _createItem ( ( array ) $ entry ) ; $ this -> _manager -> saveItem ( $ item ) ; } return array ( 'items' => $ params -> items , 'success' => true , ) ; }
Creates a new text item or updates an existing one or a list thereof.

@param stdClass $params Associative array containing the text properties
Creates a new text item or updates an existing one or a list thereof .