List of Constants Available in Kuroco
Constants can be called using the syntax $smarty.const.[constant name]
.
Some constants can be modified by adding constant settings. For more information, refer to Constants.
List of Constants
Constant Name | Description |
---|---|
SITE_TITLE | Site title. Can be set in the site management page. |
SITE_KEY | Site key specified at registration |
ROOT_URL | URL of Kuroco front-end |
ROOT_MNG_URL | URL of Kuroco management interface |
ROOT_API_URL | URL of Kuroco API |
ROOT_IMG_URL | URL of Kuroco Files |
S3BUCKET | Bucket name of the configured S3 |
S3BUCKET_DOMAIN | Domain of the configured S3 region |
SITE_EMAIL | Administrator email. Can be set in the site management page. |
INQUIRY_OPERATE_LIMIT_TYPE_NONE | Constant indicating that there are no access restrictions for the inquiry management page |
INQUIRY_OPERATE_LIMIT_TYPE_GROUP | Constant indicating that there are access restrictions for the inquiry management page |
INQUIRY_OPERATE_LIMIT_TYPE_OWNCONTENTS | Constant indicating that only inquiries from content registered by logged-in users can be operated |
INQUIRY_TEXT_FORMAT | Integer value indicating that the inquiry item type is "short text up to 100 characters" |
INQUIRY_TEXT_AREA_FORMAT | Integer value indicating that the inquiry item type is "long text up to 400 characters" |
INQUIRY_RADIO_BUTTON_FORMAT | Integer value indicating that the inquiry item type is "single selection (radio button)" |
INQUIRY_SELECT_BOX_FORMAT | Integer value indicating that the inquiry item type is "single selection (select box)" |
INQUIRY_CHECK_BOX_FORMAT | Integer value indicating that the inquiry item type is "multiple selection (select box)" |
INQUIRY_DATE_FORMAT | Integer value indicating that the inquiry item type is "date" |
INQUIRY_FILE_FORMAT | Integer value indicating that the inquiry item type is "file" |
INQUIRY_MATRIX_FORMAT | Integer value indicating that the inquiry item type is "matrix" |
INQUIRY_FILE_GCS_FORMAT | Integer value representing the type of inquiry item as "GCS File" |
INQUIRY_FILE_S3_FORMAT | Integer value representing the type of inquiry item as "S3 File" |
GROUP_POLICY_ALLOW | Integer value representing the group's member information access policy as "Unrestricted" |
GROUP_POLICY_DENY | Integer value representing the group's member information access policy as "Restricted" |
COMMENT_STATUS_RUN | Integer value representing the status of a comment as "Running" |
COMMENT_STATUS_STOP | Integer value representing the status of a comment as "Stopped" |
MAGAZINE_RUN | Integer value representing the status of delivery as "Running" |
MAGAZINE_STOP | Integer value representing the status of delivery as "Stopped" |
MEMBER_CSV_OUTPUT_OFFSET | Number of rows per file in the downloaded CSV |
EC_POINT_STATUS_FIXED | Integer value representing the status of a point as "Fixed" |
EC_POINT_STATUS_TEMP | Integer value representing the status of a point as "Unfixed" |
EC_POINT_STATUS_EXPIRED | Integer value representing the status of a point as "Expired" |
EC_EXT_GROUP_LOOP | Integer value representing the number of SKU extension items |
EC_PAYMENTMETHOD_CREDIT_CARD | Integer value indicating that the payment method is "credit card" |
EC_PAYMENTMETHOD_CONVENIENCE_STORE | Integer value indicating that the payment method is "convenience store payment" |
EC_PAYMENTMETHOD_MONTHLY | Integer value indicating that the payment method is "monthly card" |
EC_PAYMENTMETHOD_AMAZON_PAYMENT_MONTHLY | Integer value indicating that the payment method is "Amazon payment (monthly)" |
EC_PAYMENTMETHOD_PAY_EASY | Integer value indicating that the payment method is "ATM payment (Pay-easy)" |
EC_PAYMENTMETHOD_SP_CAREER_SB | Integer value indicating that the payment method is "SP carrier continuous payment" |
EC_WITHDRAW_ON_PURCHASE | Integer value representing the payment option as "Monthly Payment + On Purchase" |
EC_SERIAL_CODE_GROUP_TYPE_FREE_CODE | Value indicating that the coupon value type for EC serial codes is set to "Free Code" |
EC_SERIAL_CODE_GROUP_TYPE_DISCOUNT_CODE | Value indicating that the coupon value type for EC serial codes is set to "Discount Code" |
EC_SERIAL_CODE_DISCOUNT_AMOUNT | Value indicating that the type of coupon value for the EC serial code is "discount amount" |
EC_SERIAL_CODE_DISCOUNT_PERCENTAGE | Value indicating that the type of coupon value for the EC serial code is "%" |
EC_CONVENI_TYPE_SEVENELEVEN | Constant indicating that the convenience store is "Seven Eleven" |
EC_CONVENI_TYPE_LAWSON | An integer value indicating that the convenience store is "Lawson". |
EC_CONVENI_TYPE_FAMIMA | An integer value indicating that the convenience store is "FamilyMart". |
EC_CONVENI_TYPE_SEICOMART | An integer value indicating that the convenience store is "Seicomart". |
EC_CONVENI_TYPE_CIRCLEK_SUNKUS | An integer value indicating that the convenience store is "Circle K Sunkus". |
EC_CONVENI_TYPE_MINISTOP | An integer value indicating that the convenience store is "Ministop". |
EC_CONVENI_TYPE_YAMAZAKI | An integer value indicating that the convenience store is "Daily Yamazaki". |
EC_SPCAREER_TYPE_DOCOMO | An integer value indicating that the career is "docomo". |
EC_SPCAREER_TYPE_AU | An integer value indicating that the career is "au". |
EC_SPCAREER_TYPE_SOFTBANK | An integer value indicating that the career is "SoftBank". |
EC_EXT_TYPE_TEXT | An integer value indicating that the type of EC extended item is "text". |
EC_EXT_TYPE_TEXT_AREA | An integer value indicating that the type of EC extended item is "text area". |
EC_EXT_TYPE_WYSIWYG | An integer value indicating that the type of EC extended item is "Wysiwyg". |
EC_EXT_TYPE_SELECT_BOX | An integer value indicating that the type of EC extended item is "single choice". |
EC_EXT_TYPE_MULTIPLE_CHOICE_CHECKBOX | An integer value indicating that the type of EC extended item is "multiple choice (checkbox)". |
EC_EXT_TYPE_IMAGE | An integer value indicating that the type of EC extended item is "image". |
EC_EXT_TYPE_LINK | An integer value indicating that the type of EC extended item is "link". |
EC_EXT_TYPE_DATE | An integer value indicating that the type of EC extended item is "date format". |
EC_EXT_TYPE_TDFK | An integer value indicating that the type of EC extended item is "prefecture". |
EC_EXT_TYPE_FILE | An integer value indicating that the type of EC extended item is "file". |
EC_EXT_TYPE_HTML | An integer value indicating that the type of EC extended item is "html". |
EC_EXT_TYPE_FILEMANGER | An integer value indicating that the type of EC extended item is "file manager". |
EC_EXT_TYPE_GCSFILE | Integer value indicating that the type of EC extension item is "GCS file" |
DEFAULT_OPEN_TYPE | Initial value of the public setting in the content editing page Initial value of the public setting in non-content editing pages * By default, it is set to "open" and can be changed through constant settings. |
DEFAULT_OPEN_TYPE2 | Initial value of the public setting in the content editing page |
OPEN_TIME_OPTION_INTERVAL | Interval between selectable times in the public setting |
LOGIN_URL_FOR_LTD | URL of the login page to which the user is redirected when accessing restricted files without logging in |
APPROVALFLOW_APPROVAL_STATUS_1 | Integer value indicating that the approval status of the content in the approval workflow is "Pending" |
APPROVALFLOW_APPROVAL_STATUS_2 | Integer value indicating that the approval status of the content in the approval workflow is "Waiting for Approval" |
APPROVALFLOW_APPROVAL_ALERT_TIME | Time of sending the approval pending alert in the approval workflow |
MAGAZINE_MAIL_UNSENT | Integer value indicating that the status of the delivery email is "Pending" |
MAGAZINE_MAIL_SENDING | Integer value indicating that the status of the delivery email is "Sending" |
MAGAZINE_MAIL_SENT | Integer value indicating that the status of the delivery email is "Sent" |
MAGAZINE_MAIL_ROUGH | Integer value indicating that the status of the delivery email is "Draft" |
BATCH_TYPE_EVERYDAY | An integer value indicating that the type of batch processing is "every day". |
BATCH_STATUS_UNDONE | Integer value indicating that the status of the batch process is "Not Started" |
BATCH_STATUS_DISABLE | Integer value indicating that the status of the batch process is "Disabled" |
BATCH_TYPE_TEMPLATE | An integer value indicating that the type of batch processing is "batch template". |
APPROVALFLOW_MEMBER_TYPE_1 | Integer value indicating that the approval workflow member type is "Group" |
APPROVALFLOW_MEMBER_TYPE_2 | Integer value indicating that the approval workflow member type is "Member" |
LOGIN_INFO | Login page message |
RCMS_DATEFORMAT | Date format setting. |
RCMS_CURRENCY | Currency Unit Used |
RCMS_TIMEZONE | Time zone. |
TAG_MAX_EXTENSION | Maximum number of tag extensions |
TOPICS_CONTENTS_TYPE_CNT | Maximum number of categories that can be set for a content |
TOPICS_MAX_EXTENSION | Maximum number of extensions that can be set for a content |
TOPICS_EXT_GROUP_LOOP | Maximum number of repetitions for content's extension items |
TOPICS_EXT_TYPE_GCSFILE | Integer value representing that the extension type of an article is "GCS file" |
TOPICS_EXT_TYPE_TEXT | Integer value that represents an article extension item of "Text" type |
TOPICS_EXT_TYPE_AUTOCOMPLETE | Integer value that represents an article extension item of "Text (autocomplete)" type |
TOPICS_EXT_TYPE_SELECT_BOX | Integer value that represents an article extension item of "Single choice" type |
TOPICS_EXT_TYPE_TEXT_AREA | Integer value that represents an article extension item of "Text area" type |
TOPICS_EXT_TYPE_MULTIPLE_CHOICE_CHECKBOX | Integer value that represents an article extension item of "Multiple choice (checkbox)" type |
TOPICS_EXT_TYPE_CSVTABLE | Integer value that represents an article extension item of "Master format" type |
TOPICS_EXT_TYPE_RELATION | Integer value that represents an article extension item of "Related information selection" type |
TOPICS_EXT_TYPE_DATE | Integer value that represents an article extension item of "Date format" type |
TOPICS_EXT_TYPE_WYSIWYG | Integer value that represents an article extension item of "Wysiwyg" type |
TOPICS_EXT_TYPE_IMAGE | Integer value that represents an article extension item of "Image" type |
TOPICS_EXT_TYPE_LINK | Integer value that represents an article extension item of "Link" type |
TOPICS_EXT_TYPE_FILE | Integer value that represents an article extension item of "File" type |
TOPICS_EXT_TYPE_TABLE | Integer value that represents an article extension item of "Table format" type |
TOPICS_EXT_TYPE_LOCATION | Integer value representing that the extension type of an article is "Location" |
TOPICS_EXT_TYPE_HTML | Integer value that represents an article extension item of "HTML" type |
TOPICS_EXT_TYPE_S3FILE | Integer value representing that the extension type of an article is "S3 file" |
TOPICS_EXT_TYPE_FILEMANGER | Integer value that represents an article extension item of "File manager" type |
RCMS_DEFAULT_TOPICS_MAX_EXTENSION | Integer that represents the upper limit (default value) of the number of article extension items. If you set it separately for each site, use TOPICS_MAX_EXTENSION instead of this variable. |
RCMS_DEFAULT_MEMBER_MAX_EXTENSION | Integer that represents the upper limit (default value) of the number of member extension items. |
GEO_REGION | Fastly region *Only accessible through API calls |
GEO_COUNTRY_CODE | Fastly country code *Only accessible through API calls |
GEO_CONN_SPEED | Fastly connection speed *Only accessible through API calls |
OEM_CURRENCY | Currency unit used *Only accessible in dashboard widgets |
RCMS_SESSION_GC_MAXLIFETIME | Time duration until automatic logout after accessing while logged in |
PHP Predefined Constants
The following PHP predefined constants are available for use with the PHP Functions Available for Kuroco's Smarty.
Please do not use these constants for any purpose other than using them with the PHP functions available in Kuroco's Smarty.
The specification is the same as for Kuroco's constants: $smarty.const.[constant_name]
.
For a description of the constants, please refer to the PHP documentation.
- ENT_COMPAT
- ENT_QUOTES
- ENT_NOQUOTES
- ENT_HTML401
- ENT_XML1
- ENT_XHTML
- ENT_HTML5
- JSON_FORCE_OBJECT
- JSON_HEX_QUOT
- JSON_HEX_TAG
- JSON_HEX_AMP
- JSON_HEX_APOS
- JSON_INVALID_UTF8_IGNORE
- JSON_INVALID_UTF8_SUBSTITUTE
- JSON_NUMERIC_CHECK
- JSON_PARTIAL_OUTPUT_ON_ERROR
- JSON_PRESERVE_ZERO_FRACTION
- JSON_PRETTY_PRINT
- JSON_UNESCAPED_LINE_TERMINATORS
- JSON_UNESCAPED_SLASHES
- JSON_UNESCAPED_UNICODE
- JSON_BIGINT_AS_STRING
- FILTER_VALIDATE_BOOLEAN
- FILTER_VALIDATE_BOOL
- FILTER_VALIDATE_DOMAIN
- FILTER_VALIDATE_EMAIL
- FILTER_VALIDATE_FLOAT
- FILTER_VALIDATE_INT
- FILTER_VALIDATE_IP
- FILTER_VALIDATE_MAC
- FILTER_VALIDATE_REGEXP
- FILTER_VALIDATE_URL
- FILTER_SANITIZE_EMAIL
- FILTER_SANITIZE_ENCODED
- FILTER_SANITIZE_ADD_SLASHES
- FILTER_SANITIZE_NUMBER_FLOAT
- FILTER_SANITIZE_NUMBER_INT
- FILTER_SANITIZE_SPECIAL_CHARS
- FILTER_SANITIZE_FULL_SPECIAL_CHARS
- FILTER_SANITIZE_URL
- FILTER_UNSAFE_RAW
- FILTER_FLAG_STRIP_LOW
- FILTER_FLAG_STRIP_HIGH
- FILTER_FLAG_STRIP_BACKTICK
- FILTER_FLAG_ALLOW_FRACTION
- FILTER_FLAG_ALLOW_THOUSAND
- FILTER_FLAG_ALLOW_SCIENTIFIC
- FILTER_FLAG_NO_ENCODE_QUOTES
- FILTER_FLAG_ENCODE_LOW
- FILTER_FLAG_ENCODE_HIGH
- FILTER_FLAG_ENCODE_AMP
- FILTER_NULL_ON_FAILURE
- FILTER_FLAG_ALLOW_OCTAL
- FILTER_FLAG_ALLOW_HEX
- FILTER_FLAG_EMAIL_UNICODE
- FILTER_FLAG_IPV4
- FILTER_FLAG_IPV6
- FILTER_FLAG_NO_PRIV_RANGE
- FILTER_FLAG_NO_RES_RANGE
- FILTER_FLAG_GLOBAL_RANGE
- FILTER_FLAG_SCHEME_REQUIRED
- FILTER_FLAG_HOST_REQUIRED
- FILTER_FLAG_PATH_REQUIRED
- FILTER_FLAG_QUERY_REQUIRED
- FILTER_REQUIRE_SCALAR
- FILTER_REQUIRE_ARRAY
- FILTER_FORCE_ARRAY
- PHP_URL_SCHEME
- PHP_URL_HOST
- PHP_URL_PORT
- PHP_URL_USER
- PHP_URL_PASS
- PHP_URL_PATH
- PHP_URL_QUERY
- PHP_URL_FRAGMENT
- STR_PAD_LEFT
- STR_PAD_RIGHT
- STR_PAD_BOTH
Related documents
- Constants
- Can I change the time selection interval for the content publication date and time settings?
- Can I set my content publishing status to "Unpublish" by default?
- How to get the origin country/region of API requests
- Can we redirect to an arbitrary page when accessing a file without viewing permission?
Support
If you have any other questions, please contact us or check out Our Slack Community.