K4 DocumentK4Articles

K4 Articles

Instance Properties

Name Description Access
length number The number of objects in the collection. read-only

Methods

add(
[withProperties])
 → K4Article
anyItem(
)
 → K4Article
count(
)
 → number
everyItem(
)
 → K4Article
firstItem(
)
 → K4Article
item(
index)
 → K4Article
itemByID(
id)
 → K4Article
itemByName(
name)
 → K4Article
itemByRange(
from, to)
 → K4Article
k4GetById(
k4Id)
 → Object
k4GetByName(
k4Name)
 → Object
lastItem(
)
 → K4Article
nextItem(
obj)
 → K4Article
previousItem(
obj)
 → K4Article
toSource(
)
 → string
add(
[withProperties])
 → K4Article
Creates a new K4Article.
withProperties Object Initial values for properties of the new K4Article (Optional)
anyItem(
)
 → K4Article
Returns any K4Article in the collection.
count(
)
 → number
Displays the number of elements in the K4Article.
everyItem(
)
 → K4Article
Returns every K4Article in the collection.
firstItem(
)
 → K4Article
Returns the first K4Article in the collection.
item(
index)
 → K4Article
Returns the K4Article with the specified index or name.
index The index or name. Can accept: Long Integer or String.
itemByID(
id)
 → K4Article
Returns the K4Article with the specified ID.
id number The ID.
itemByName(
name)
 → K4Article
Returns the K4Article with the specified name.
name string The name.
itemByRange(
from, to)
 → K4Article
Returns the K4Articles within the specified range.
from The K4Article, index, or name at the beginning of the range. Can accept: K4Article, Long Integer or String.
to The K4Article, index, or name at the end of the range. Can accept: K4Article, Long Integer or String.
k4GetById(
k4Id)
 → Object
K4 Get By ID
k4Id string K4 ID
k4GetByName(
k4Name)
 → Object
K4 Get By Name
k4Name string K4 Name
lastItem(
)
 → K4Article
Returns the last K4Article in the collection.
middleItem(
)
 → K4Article
Returns the middle K4Article in the collection.
nextItem(
obj)
 → K4Article
Returns the K4Article whose index follows the specified K4Article in the collection.
obj K4Article The K4Article whose index comes before the desired K4Article.
previousItem(
obj)
 → K4Article
Returns the K4Article with the index previous to the specified index.
obj K4Article The index of the K4Article that follows the desired K4Article.
toSource(
)
 → string
Generates a string which, if executed, will return the K4Article.