C# 클래스 DrutNET.Services

enable to connect to drupal services using XML RPC
상속: DrutNETBase, IConnection
파일 보기 프로젝트 열기: bricel/DrutNet 1 사용 예제들

공개 메소드들

메소드 설명
AttachFileToNode ( string fileFieldName, int fid, int fileIndex, CookComputing.XmlRpc.XmlRpcStruct node ) : bool

Add an already upload file to cck file field, without saving the node

AttachFileToNode ( string fileFieldName, int fid, int fileIndex, int nid ) : bool

Add an already upload file to cck file field, also saving node

FileGet ( int fid ) : CookComputing.XmlRpc.XmlRpcStruct

Get file structure information

FileSave ( string filePath, string serverPath ) : string

Save file structure

FileUpload ( string filePath, string fieldName, int fileIndex, int nodeID ) : bool
FileUpload ( string filePath, string fieldName, int fileIndex, int nodeID, string serverDirectory ) : bool

Upload and attach a file to an existing NODE.

Login ( string user, string password ) : bool
Login ( string user, string password, string debugURL ) : bool
Logout ( ) : bool
NodeGet ( int nid ) : CookComputing.XmlRpc.XmlRpcStruct

Return node structure

NodeGet ( int nid, string fields ) : XmlRpcStruct
NodeSave ( XmlRpcStruct node ) : int
OGgetVocab ( int ogID ) : XmlRpcStruct
ParseField ( Enum fieldName, XmlRpcStruct nodeStruct ) : string
ParseField ( Enum fieldName, XmlRpcStruct nodeStruct, int arrayIndex ) : string
ParseField ( string fieldName, XmlRpcStruct nodeStruct ) : string
ParseFieldArray ( Enum arrayfieldName, Enum fieldName, XmlRpcStruct parentStruct ) : string
ReLogin ( ) : bool
Services ( ServicesSettings settings ) : System

Single Tone constructor

TaxonomyGetTree ( int vid ) : XmlRpcStruct[]
UserGet ( ) : XmlRpcStruct

Get logged in user information

UserGet ( int nid ) : XmlRpcStruct
ViewsGet ( string viewName, int limit ) : XmlRpcStruct[]
ViewsGet ( string viewName, int limit, object args ) : XmlRpcStruct[]
ViewsGet ( string viewName, string args ) : XmlRpcStruct[]

비공개 메소드들

메소드 설명
GetHMAC ( string message, string key ) : string
GetNonce ( int length ) : string
GetUnixTimestamp ( ) : string
buildFileStruct ( string filePath, string serverPath ) : XmlRpcStruct

Create a drupal file structure

errorMessage ( string msg ) : void
handleExeption ( Exception ex ) : XmlRpcStruct
handleExeption ( Exception ex, string functionName ) : XmlRpcStruct
handleExeptionStr ( Exception ex, string functionName ) : string

메소드 상세

AttachFileToNode() 공개 메소드

Add an already upload file to cck file field, without saving the node
public AttachFileToNode ( string fileFieldName, int fid, int fileIndex, CookComputing.XmlRpc.XmlRpcStruct node ) : bool
fileFieldName string CCK field name
fid int File ID to attach
fileIndex int file index in case of multiple file field, for single file use 0
node CookComputing.XmlRpc.XmlRpcStruct Node to attach file to (alresdy load with node load)
리턴 bool

AttachFileToNode() 공개 메소드

Add an already upload file to cck file field, also saving node
public AttachFileToNode ( string fileFieldName, int fid, int fileIndex, int nid ) : bool
fileFieldName string CCK field name
fid int File ID to attach
fileIndex int file index in case of multiple file field, for single file use 0
nid int
리턴 bool

FileGet() 공개 메소드

Get file structure information
public FileGet ( int fid ) : CookComputing.XmlRpc.XmlRpcStruct
fid int file id
리턴 CookComputing.XmlRpc.XmlRpcStruct

FileSave() 공개 메소드

Save file structure
public FileSave ( string filePath, string serverPath ) : string
filePath string
serverPath string
리턴 string

FileUpload() 공개 메소드

public FileUpload ( string filePath, string fieldName, int fileIndex, int nodeID ) : bool
filePath string
fieldName string
fileIndex int
nodeID int
리턴 bool

FileUpload() 공개 메소드

Upload and attach a file to an existing NODE.
public FileUpload ( string filePath, string fieldName, int fileIndex, int nodeID, string serverDirectory ) : bool
filePath string Local path to file
fieldName string CCK field name of the file field in the node
fileIndex int file index in case of multiple file field, for single file use 0
nodeID int Node ID to attache file to
serverDirectory string Server directory path e.g: sites/default/files/
리턴 bool

Login() 공개 메소드

public Login ( string user, string password ) : bool
user string
password string
리턴 bool

Login() 공개 메소드

public Login ( string user, string password, string debugURL ) : bool
user string
password string
debugURL string
리턴 bool

Logout() 공개 메소드

public Logout ( ) : bool
리턴 bool

NodeGet() 공개 메소드

Return node structure
public NodeGet ( int nid ) : CookComputing.XmlRpc.XmlRpcStruct
nid int Node ID
리턴 CookComputing.XmlRpc.XmlRpcStruct

NodeGet() 공개 메소드

public NodeGet ( int nid, string fields ) : XmlRpcStruct
nid int
fields string
리턴 XmlRpcStruct

NodeSave() 공개 메소드

public NodeSave ( XmlRpcStruct node ) : int
node XmlRpcStruct
리턴 int

OGgetVocab() 공개 메소드

public OGgetVocab ( int ogID ) : XmlRpcStruct
ogID int
리턴 XmlRpcStruct

ParseField() 공개 메소드

public ParseField ( Enum fieldName, XmlRpcStruct nodeStruct ) : string
fieldName Enum
nodeStruct XmlRpcStruct
리턴 string

ParseField() 공개 메소드

public ParseField ( Enum fieldName, XmlRpcStruct nodeStruct, int arrayIndex ) : string
fieldName Enum
nodeStruct XmlRpcStruct
arrayIndex int
리턴 string

ParseField() 공개 메소드

public ParseField ( string fieldName, XmlRpcStruct nodeStruct ) : string
fieldName string
nodeStruct XmlRpcStruct
리턴 string

ParseFieldArray() 공개 메소드

public ParseFieldArray ( Enum arrayfieldName, Enum fieldName, XmlRpcStruct parentStruct ) : string
arrayfieldName Enum
fieldName Enum
parentStruct XmlRpcStruct
리턴 string

ReLogin() 공개 메소드

public ReLogin ( ) : bool
리턴 bool

Services() 공개 메소드

Single Tone constructor
public Services ( ServicesSettings settings ) : System
settings ServicesSettings
리턴 System

TaxonomyGetTree() 공개 메소드

public TaxonomyGetTree ( int vid ) : XmlRpcStruct[]
vid int
리턴 XmlRpcStruct[]

UserGet() 공개 메소드

Get logged in user information
public UserGet ( ) : XmlRpcStruct
리턴 XmlRpcStruct

UserGet() 공개 메소드

public UserGet ( int nid ) : XmlRpcStruct
nid int
리턴 XmlRpcStruct

ViewsGet() 공개 메소드

public ViewsGet ( string viewName, int limit ) : XmlRpcStruct[]
viewName string
limit int
리턴 XmlRpcStruct[]

ViewsGet() 공개 메소드

public ViewsGet ( string viewName, int limit, object args ) : XmlRpcStruct[]
viewName string
limit int
args object
리턴 XmlRpcStruct[]

ViewsGet() 공개 메소드

public ViewsGet ( string viewName, string args ) : XmlRpcStruct[]
viewName string
args string
리턴 XmlRpcStruct[]