|
非推奨メンバー |
非推奨ポリシー |
2010/08/10 |
|
getSelfLink |
String |
このコメント用のthe Google Data feedのUrlを取得する |
|
getInReplyTo |
String |
このコメントの親ページ用のthe Google Data feedのUrlを取得する |
|
非推奨メンバー |
非推奨ポリシー |
2010/08/10 |
|
getSelfLink |
String |
この添付ファイル用のthe Google Data feedのUrlを取得する |
|
getContent |
String |
文字列としてのこの添付ファイルの内容(ホストされたファイルとして)またはファイルのUrl(ウェブ添付ファイとして)を取得する |
|
setContent |
Attachment |
文字列としてのこの添付ファイルの内容(ホストされたファイルとして)またはファイルのUrl(ウェブ添付ファイとして)を取得する |
method getDatePublished()
| 戻り値 : |
| Type | 説明 |
|
Date |
このコメントの最終更新日
|
| サンプル : |
var pages = SitesApp.getSite('example.com', 'mysite').getChildren();
var comments = pages[0].getComments();
var date = comments[0].getDatePublished();
|
method getDatePublished()
| Arguments : |
| name | Type | 説明 |
|
name | String |
フォルダー名 |
| 戻り値 : |
| Type | 説明 |
|
Date |
添付ファイルがオリジナルとして公開された日付
|
| サンプル : |
var pages = SitesApp.getSite('example.com', 'mysite').getChildren();
var attachments = pages[0].getAttachments();
var date = attachments[0].getDatePublished();
|
method getLastUpdated()
| 戻り値 : |
| Type | 説明 |
|
Date |
コメントがオリジナルとして公開された日付
|
| サンプル : |
var pages = SitesApp.getSite('example.com', 'mysite').getChildren();
var comments = pages[0].getComments();
var date = comments[0].getLastUpdated();
|
method getContent()
| Arguments : |
| name | Type | 説明 |
|
parent | Page |
この添付ファイルの親ページ |
| 戻り値 : |
| Type | 説明 |
|
String |
このコメントの内容
|
| サンプル : |
var pages = SitesApp.getSite('example.com', 'mysite').getChildren();
var comments = pages[0].getComments();
var content = comments[0].getContent();
|
method setContent(content)
| Arguments : |
| name | Type | 説明 |
|
content | String |
このコメントの新しい内容 |
| 戻り値 : |
| Type | 説明 |
|
String |
この添付ファイルを連結
|
| サンプル : |
var pages = SitesApp.getSite('example.com', 'mysite').getChildren();
var comments = pages[0].getComments();
var comment = comments[0].setContent('my new comment');
|
method getParent()
| 戻り値 : |
| Type | 説明 |
|
Page |
このコメントの親ページ
|
| サンプル : |
var pages = SitesApp.getSite('example.com', 'mysite').getChildren();
var comments = pages[0].getComments();
var page = comments[0].getParent();
|
method setParent(parent)
| Arguments : |
| name | Type | 説明 |
|
parent | Page |
このコメントの新しい親ページ |
| 戻り値 : |
| Type | 説明 |
|
Comment |
このコメントを連結
|
| サンプル : |
var site = SitesApp.getSite('example.com', 'mysite');
var comments = site.getChildren()[0].getComments();
var newParent = site.getChildByName('childpage2');
for (var i = 0; i < comments.length; i++) {
var comment = comments[i].setParent(newParent);
}
|
| サンプル : |
var pages = SitesApp.getSite('example.com', 'mysite').getChildren();
var comments = pages[0].getComments();
comments[0].deleteComment();
|
|